I have macros in a template used to create a specific naming convention when
saved. I do not want these templates in the newly created document. Is it
possible to set Word to not copy the macros? If so how?

Please respond to my email address preflyght-1@yahoo.com

Thanks!

Re: prevent template macros copying to new documant by Howard

Howard
Mon Apr 11 23:05:41 CDT 2005

macros do not get copied to documents from a template.

--
http://www.standards.com/; See Howard Kaikow's web site.
"RobMcKinnon" <RobMcKinnon@discussions.microsoft.com> wrote in message
news:F063E0CC-BEF8-4AA4-A215-FA43B120C27E@microsoft.com...
> I have macros in a template used to create a specific naming convention
when
> saved. I do not want these templates in the newly created document. Is
it
> possible to set Word to not copy the macros? If so how?
>
> Please respond to my email address preflyght-1@yahoo.com
>
> Thanks!



Re: prevent template macros copying to new documant by Charles

Charles
Tue Apr 12 00:00:22 CDT 2005

Unless you go to extraordinary lengths, macros are not copied to a document
based on a template.

However, since the template is still attached to the document, the macros
will be available in the document. If your macros are stored in a custom
document template you can make them unavailable to the document by attaching
the normal.dot template to the document. Tools > Templates and Add-Ins...

--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"RobMcKinnon" <RobMcKinnon@discussions.microsoft.com> wrote in message
news:F063E0CC-BEF8-4AA4-A215-FA43B120C27E@microsoft.com...
>I have macros in a template used to create a specific naming convention
>when
> saved. I do not want these templates in the newly created document. Is
> it
> possible to set Word to not copy the macros? If so how?
>
> Please respond to my email address preflyght-1@yahoo.com
>
> Thanks!



Re: prevent template macros copying to new documant by Needmo

Needmo
Tue Apr 12 23:47:04 CDT 2005

All:
I was just (over last several days) discussing this concern w/Perry.
I finally found what I wanted by the following...
This code doesn't remove anything from the .DOT -- it just breaks any
association between the .DOC and the "master" .DOT.

Sub Document_Close()
If ActiveDocument.Type = wdTypeDocument Then
With ActiveDocument
.AttachedTemplate = ""
End With
MsgBox "Thanks for your patronage."
End If
End Sub

Good day,
Warren

"Charles Kenyon" <msnewsgroup@remove.no.spam.addbalance.com> wrote in
news:#nP$aAyPFHA.3384@TK2MSFTNGP10.phx.gbl:

> Unless you go to extraordinary lengths, macros are not copied to a
> document based on a template.
>
> However, since the template is still attached to the document, the
> macros will be available in the document. If your macros are stored in
> a custom document template you can make them unavailable to the
> document by attaching the normal.dot template to the document. Tools >
> Templates and Add-Ins...
>