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,
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,
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
ASKER
Where do you choose to protect just the form section?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
That works perfectly.
That works perfectly.