D
dsimcox
I have a survey with about 50 pair of option buttons (labeled "yes" and "no")
I have a Command Button that I want to program to clear all buttons (set
..Value to False)
I've tried a number of methods, but am unable to succeed. Here's my latest
try. Can someone help me out of the darkness please?
Private Sub CommandButton1_Click()
'Clears Opt Buttons
Dim oCnt As Control
For Each oCnt In Me.Controls
If TypeOf oCnt Is OptionButton Then
ActiveDocument.oCnt.Value = False
End If
Next
End Sub
I have a Command Button that I want to program to clear all buttons (set
..Value to False)
I've tried a number of methods, but am unable to succeed. Here's my latest
try. Can someone help me out of the darkness please?
Private Sub CommandButton1_Click()
'Clears Opt Buttons
Dim oCnt As Control
For Each oCnt In Me.Controls
If TypeOf oCnt Is OptionButton Then
ActiveDocument.oCnt.Value = False
End If
Next
End Sub