Word 2007 will not run macro from custom toolbar when document isprotected

R

Ray Vaughn

Hi All,

I have a word 2007 document where my macro settings are set to low,
enable all macros. This document also has a custom toolbar that shows
up under the Add-Ins that will run one of my macros. I have protected
sections in the document and have the document protected. It seems
that when the document is protected, I cannot run a macro from the
toolbar. The macros button is also disabled. When I unprotect,
everything is allowed to run.

Here is the protect code:
ActiveDocument.Protect Password:="xxxxxxxx", NoReset:=False, Type:= _
wdAllowOnlyFormFields

Does anyone know how to protect the document but allow a macro to run
from a custom toolbar?

Thanks for any help,
- Steve
 
D

Doug Robbins - Word MVP

Add a button to the Quick Access toolbar to run the macro

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top