Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Word 2007 Command Button with Protected Document Not Executing

Posted on 2011-02-25
4
Medium Priority
?
912 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
A few years ago I was very much a beginner at VBA, and that very much remains the case today.  I'll do my best to explain things as I go in the hope that other beginners can follow.  If you just want to check out a tool that creates a Select Case fu…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
Suggested Courses

715 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