How to grey out "edit macro"

S

Steve

When you click on Tools -> Macros, the Edit button is greyed out
for a lot of the prebuilt macros. Any way to do the same for a
macro I create?

TIA Steve
 
J

Jay Freedman

Hi, Steve,

First, put your macro in a module in a separate template -- you don't
want to do this to your Normal.dot. (You can only lock out a whole
template, not an individual macro or module. Besides, you should have
a separate template to distribute the macro -- see
http://word.mvps.org/FAQs/MacrosVBA/DistributeMacros.htm.)

When the macro is complete, go to Tools > TemplateProject Properties
and click the Protection tab. Check the "Lock project for viewing"
box. If you really don't trust people, enter a password. (Hint: since
you probably won't remember the password after a few weeks, be sure to
keep an unprotected copy of the template somewhere safe.)
 
S

Steve

Hi, Steve,

First, put your macro in a module in a separate template -- you don't
want to do this to your Normal.dot. (You can only lock out a whole
template, not an individual macro or module. Besides, you should have
a separate template to distribute the macro -- see
http://word.mvps.org/FAQs/MacrosVBA/DistributeMacros.htm.)

When the macro is complete, go to Tools > TemplateProject Properties
and click the Protection tab. Check the "Lock project for viewing"
box. If you really don't trust people, enter a password. (Hint: since
you probably won't remember the password after a few weeks, be sure to
keep an unprotected copy of the template somewhere safe.)

Works great, thanks for the procedure.

Steve
 

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