D
deensl
I have a user form that prompts a user to click yes no option buttons. This
form fills out a word document replacing the un-checkedboxes with a windings
character that looks like a checked box.
The user form has several frames with 1 set of yes no option buttons in each
frame for each question.
The form works but, I would like to make the user required to answer yes or
no to each question.
I would really appreciate any help on this..
See my code below.
Dim OBYes1 As Bookmark
Dim OBNo1 As Bookmark
'App Option Button 1 Yes
If UserQues1.OBYes1 = True Then
Selection.GoTo What:=wdGoToBookmark, Name:="OBYES1"
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.InsertSymbol Font:="Wingdings", CharacterNumber:=-3976,
Unicode _
:=True
End If
'App Option Button 1 No
If UserQues1.OBNo1 = True Then
Selection.GoTo What:=wdGoToBookmark, Name:="OBNO1"
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.InsertSymbol Font:="Wingdings", CharacterNumber:=-3976,
Unicode _
:=True
End If
form fills out a word document replacing the un-checkedboxes with a windings
character that looks like a checked box.
The user form has several frames with 1 set of yes no option buttons in each
frame for each question.
The form works but, I would like to make the user required to answer yes or
no to each question.
I would really appreciate any help on this..
See my code below.
Dim OBYes1 As Bookmark
Dim OBNo1 As Bookmark
'App Option Button 1 Yes
If UserQues1.OBYes1 = True Then
Selection.GoTo What:=wdGoToBookmark, Name:="OBYES1"
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.InsertSymbol Font:="Wingdings", CharacterNumber:=-3976,
Unicode _
:=True
End If
'App Option Button 1 No
If UserQues1.OBNo1 = True Then
Selection.GoTo What:=wdGoToBookmark, Name:="OBNO1"
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.InsertSymbol Font:="Wingdings", CharacterNumber:=-3976,
Unicode _
:=True
End If