
newby wants to remove macros from finished document
Thanks Jay
I had used File/New.
My error was in assuming that the code was somehow stored within the
document when in fact, as
you point out, it was Word attaching the original template to the document.
I have opened the document on a different PC and of course the only thing
attached is normal.dot.
Regards
Bill
Quote:
> Hi, Bill,
> If I read this correctly, you haven't used the File/New dialog to create a
document based on the
Quote:
> template. That's the way templates are supposed to be used.
> If you have done it this way, then the macros are *not* in the document,
and there's nothing to
Quote:
> remove. They stay in the template. When you reopen the document, Word
looks for the original
Quote:
> template and "attaches" it, which makes the macros available. If the
original template isn't present
Quote:
> (you deleted the template, or you moved the document to a different PC),
Word attaches Normal.dot
Quote:
> instead.
> If you used some other way of creating the document from the template --
using File/Save As, for
Quote:
> example -- and the macros really are in the document, you can get rid of
them by saving the document
Quote:
> as an RTF file and then resaving the RTF as a Word document. But you
should avoid that work by doing
Quote:
> the File/New in the first place!
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP Word MVP FAQ site: http://www.mvps.org/word
Quote:
> > Probably there is a very obvious answer to this but I have trawled
though
> > the FAQs and not found it.
> > I have made a template containing some macros and a user form.
> > I compose a document using the template.
> > The finished document contains all the underlying template code.
> > My question is this:
> > My template and macros have not added anything to the styles within this
> > document.
> > They serve no further purpose now the document is complete
> > How can I get rid of them from the final document without destroying the
> > original template?
> > Thanks
> > Bill