>I am having difficulty using the great direction found at
>("http://word.mvps.org/faqs/macrosvba/InterceptsavePrinContent.htm)
[quoted text clipped - 5 lines]
>
>TIA
The trick is that there are two separate commands, each of which has
to be intercepted by a separate macro. One macro must be named
ToolsProtect, and it intercepts the menu item Tools > Protect
Document. The other macro must be named ProtectForm, and it intercepts
the lock button on the Forms toolbar.
The macros can be in any module, in either Normal.dot or a global
add-in template (that is, one stored in Word's Startup folder). The
NewMacros folder is special only in that the macro recorder defaults
there, and creates that module if it doesn't exist. You can remove the
NewMacros module if it's empty or if you don't need any of the code
that's in it.
A little-known trick is that you can direct the recorder to put its
macro into any module. In the box where you put the name of the macro,
type the module name and a dot followed by the macro name. For
instance, to record a ToolsProtect macro directly into a module named
MyTools, type MyTools.ToolsProtect into the box. The module doesn't
even have to exist first.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
zSplash - 12 Mar 2006 06:10 GMT
Thanks so much for the expert advice, Jay. It works just fine now.
(I shoulda been able to figure it out. Rats!)
st.
> >I am having difficulty using the great direction found at
> >("http://word.mvps.org/faqs/macrosvba/InterceptsavePrinContent.htm)
[quoted text clipped - 32 lines]
> Email cannot be acknowledged; please post all follow-ups to the
> newsgroup so all may benefit.