G
Greg Maxey
I have some ActiveX radio buttons in a protected word document. I want to set all of the buttons initially to false. Here is the code that I scratched together:
Sub ResetRadioButtons()
Dim oILS As InlineShape
For Each oILS In ActiveDocument.InlineShapes
If oILS.Type = wdInlineShapeOLEControlObject Then
oILS.OLEFormat.Object.Value = False
End If
Next
End Sub
It works, but I was wondering if it this is a good way of doing this. Thanks.
Sub ResetRadioButtons()
Dim oILS As InlineShape
For Each oILS In ActiveDocument.InlineShapes
If oILS.Type = wdInlineShapeOLEControlObject Then
oILS.OLEFormat.Object.Value = False
End If
Next
End Sub
It works, but I was wondering if it this is a good way of doing this. Thanks.