Solved

Word 2007 Command Button with Protected Document Not Executing

Posted on 2011-02-25
4
889 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

910 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