|I am trying to automate a Word 2007 document. I have a yes/no combo box. If the user selects yes in that combo box, I want the macro to insert a block of text in a designated form field. If no, insert a different block of text at that location. I have tried everything I can think of, and all the different suggestions I have found online, in the macro but can never get anything except the first "if" or both "ifs" to populate the field...here's what I have ended up with today, it inserts both.|
If ComboBox3 = Yes Then
Selection.GoTo What:=wdGoToBookmark, Name:="Scope"
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.InsertAfter "SCOPE ATTACHED"
If ComboBox3 = No Then
Selection.InsertAfter "NOTHING ATTACHED "
I want this to be a self-contained automated document that can be sent to various staff members to create documents. There will be multiple combo boxes and ifthenelse statements, but I need to get the first one to work before I can go on to the next. Any help would be most appreciated. Thanks.