Link to home
Start Free TrialLog in
Avatar of JJENSEN3
JJENSEN3

asked on

Word 2007 Command Button with Protected Document Not Executing

I have created a document in Word 2007 professional that has fields that the user will enter in a a form format.
I have added a command button and some code under a click() action.

If the document is set for "Allow for filling in forms"  under the protection tab and I have NOT pressed the "Yes, Start Enforcing Protection" button  and I press the my form's command button, the click() action code executes.

If I press the "Yes, Start Enforcing Protection" button and click the command button on my form, it depresses, but the click() action subroutine is not executed. If I press it about ten times in a row, the code finally executes.

Take off the protection... and it works on every press.

Any ideas would be helpful.

Thanks,
Avatar of cquinn
cquinn
Flag of United Kingdom of Great Britain and Northern Ireland image

put a section break either side of the form fields, and when protecting, you can choose to protect just the form section.  Have the button outside the protected section and see if this works
Avatar of JJENSEN3
JJENSEN3

ASKER

Where do you choose to protect just the form section?
ASKER CERTIFIED SOLUTION
Avatar of cquinn
cquinn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.
That works perfectly.