Solved

Word 2007 Command Button with Protected Document Not Executing

Posted on 2011-02-25
4
895 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

763 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