I have only written macros for Excel in the past, but am trying to get something that should be very simple to work in Word using a macro, and it is really turning out to be a pain. A co-worker has designed a form in Word that has multiple checkboxes and wants to enable them to be selected or deselected with a single click. I wrote the macro below and it works when I use the 'Run' command from the macro design dialogue box, however I can't figure out what code to use to cause the macro to run by clicking on the checkbox. I have tried various settings in the checkbox properties window and have the macro set to run on entry in the properties. I also haven't been able to find any specifics on the Internet to clarify the solution. What am I missing here? Thanks!
' OneClickCheckbox Macro
Dim blnClickValue As Boolean
blnClickValue = ActiveDocument.FormFields("Check1").CheckBox.Value
If blnClickValue = False Then
ActiveDocument.FormFields("Check1").CheckBox.Value = True
ActiveDocument.FormFields("Check1").CheckBox.Value = False