I have written some macros for a particular document, and
I have created toolbar buttons to execute them. But now
whenever I open ANY word document, I see those toolbar
buttons. I want to confine these buttons to only that
document where I created them, because executing the
macros from other documents will produce some nonsensical
results.
How can I do this ?
Thanks for helping.
Tonya Marshall - 03 Oct 2003 12:41 GMT
> I have written some macros for a particular document, and
> I have created toolbar buttons to execute them. But now
[quoted text clipped - 5 lines]
> How can I do this ?
> Thanks for helping.
You will need to create a template and store the macros in that specific
template. Then attach the template to that document.
See: http://209.68.48.119/word/FAQs/Customization/CreateATemplatePart1.htm
and
http://209.68.48.119/word/FAQs/Customization/CreateATemplatePart2.htm

Signature
To send email remove spot from my email address
Tonya Marshall
Meenu - 03 Oct 2003 13:26 GMT
Thanks a lot. I was going crazy trying to figure this out.
>-----Original Message-----
>> I have written some macros for a particular document, and
[quoted text clipped - 10 lines]
>template. Then attach the template to that document.
>See: http://209.68.48.119/word/FAQs/Customization/CreateATemplat
ePart1.htm
>and
>http://209.68.48.119/word/FAQs/Customization/CreateATempla
tePart2.htm
Suzanne S. Barnhill - 03 Oct 2003 16:12 GMT
Did you save the macros in the document or in Normal.dot? Did you save the
toolbars in the document or in Normal.dot? In order to have the macros and
toolbar available only in the specific document, you must specify that
document when creating the macros and the toolbar ("Make toolbar available
to").
You can also, as Tonya says, create a template and store them there, but
they can also be stored with the document. Note, however, that they will
generate a macro warning when the document is opened; this will not be a
problem if you store them in a template.
--
Suzanne S. Barnhill
Microsoft MVP (Word)

Signature
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
> I have written some macros for a particular document, and
> I have created toolbar buttons to execute them. But now
[quoted text clipped - 5 lines]
> How can I do this ?
> Thanks for helping.