Hello everyone, I'm not sure if this is possible in VBA but here goes.
I am trying to create an event handler in vba - MS Word - to handle all of the click events for a series of check box's that I have in a table.
The reason that I want to set up a single event handler is there is a large number of check box's so instead of having:
Private Sub CheckBox1_Click()
Private sub Checkbox2_Click()
I could have something like
Private sub ActiveDocument.shapes_Click( obj at ActiveDocument.Shapes.OLEFormat)
if obj.progID = "Forms.CheckBox.1" then
...code for event here
has anyone ever done anything like this before? any thoughts.
Run Dos Run
0 · ·