View Full Version : Help with placement of code.


dusty
09-14-2009, 04:44 AM
I have a userform within word. With some option buttons i want the outcome of these option buttons to affect some checkboxes embeded in the word document itself.

Where do I position the code if I place the code within the useform it does not recognise the existance of the check boxes in the word document.

dusty
09-14-2009, 05:18 AM
currently i can addrees bookmarks in teh document from the userform. code used for this is

Dim orange as range

Set orange = ActiveDocument.bookmarks ("name of bookmark").range

so i guess i need to do the same for the option button or checkboxes

but what should it be ActiveDocument.Checkbox ("checkbox1").range

because .checkbox is not an option on the drop down list.