J
James
Hello NG,
Can someone please help me understand how to loop through the controls on a
document?
I have a page with several OptionButtons on it and I want to be able to
clear all the buttons with a macro, here is what I have done, but it doesn't
work.
=======Begin Code======
Private Sub ClearButtons()
Dim bt As Control
For Each bt In ActiveDocument
If TypeOf bt Is OptionButton Then
bt.Value = False
End If
Next
End Sub
========End Code=======
Any help would be greatly appreciated
Thanks
James
Can someone please help me understand how to loop through the controls on a
document?
I have a page with several OptionButtons on it and I want to be able to
clear all the buttons with a macro, here is what I have done, but it doesn't
work.
=======Begin Code======
Private Sub ClearButtons()
Dim bt As Control
For Each bt In ActiveDocument
If TypeOf bt Is OptionButton Then
bt.Value = False
End If
Next
End Sub
========End Code=======
Any help would be greatly appreciated
Thanks
James