Solved

Word 2007 Command Button with Protected Document Not Executing

Posted on 2011-02-25
4
887 Views
Last Modified: 2012-05-11
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,
0
Comment
Question by:JJENSEN3
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:cquinn
ID: 34986701
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
0
 

Author Comment

by:JJENSEN3
ID: 34996923
Where do you choose to protect just the form section?
0
 
LVL 15

Accepted Solution

by:
cquinn earned 500 total points
ID: 35008989
1. Make sure you have the Developer Tab showing - Click on the OFfice icon in the top left corner, then click on the "Word Options" button.  On the "Popular" tab, make sure the "Show Developer" box is checked.

2. Put a section break (continuous or new page) before and after your form elements.

3 On the Developer tab, click the Protect button, then in the protection panel that displays, set the Editing restrictions to "Filling in forms", then click on the "Select sections" link that appears just below.  Check/uncheck for the relevant sections, then click on "Begin Protection", adding a password if required
0
 

Author Comment

by:JJENSEN3
ID: 35009675
Thanks.
That works perfectly.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now