Microsoft Office Forums Command Button will not work when document is protected

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2012, 04:24 PM
brockjensen brockjensen is offline Command Button will not work when document is protected Windows 7 32bit Command Button will not work when document is protected Office 2010 64bit
Novice
Command Button will not work when document is protected
 
Join Date: Nov 2012
Posts: 1
brockjensen is on a distinguished road
Default Command Button will not work when document is protected

Hello,



I have created a form that is going to be used by many people on a daily basis, so it needs to be protected in order to prevent users from messing the form up. I have also added a command button that automaitcally prints and emails this form to the appropriate people. My problem is - when the document is protected, my command button does not work.

Also, under the craft person count table in the attached document, is there a way to have a calculate button, or a macro that will update the total fields?

Please help, I am sure this is a simple fix, but I am new to VBA. I have attached my form so you can see what I am working with.

Word 2010

Thanks,
Attached Files
File Type: docx Sample Form1.docx (63.2 KB, 2 views)
Reply With Quote
  #2  
Old 11-02-2012, 06:59 PM
macropod's Avatar
macropod macropod is offline Command Button will not work when document is protected Windows 7 64bit Command Button will not work when document is protected Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,577
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

You could just check the formfields' "calculate on exit" property. No vba required.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Tags
command button, vba, word form

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Button will not work when document is protected How do you find what command a toolbar button represents? New Daddy Word 6 05-05-2012 12:35 PM
Command Button will not work when document is protected Command Button doesnt work on network rmw85 Word VBA 1 04-25-2012 01:02 PM
Command Button will not work when document is protected Word VBA: How to create a command button and trigger a function? tinfanide Word VBA 2 12-02-2011 05:51 AM
Debug for macro run through button only when sheet protected leahca Excel Programming 0 11-24-2011 04:47 AM
Command Button will not work when document is protected Command Button cksm4 Word VBA 7 02-27-2011 08:47 PM


All times are GMT -7. The time now is 12:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft