newby wants to remove macros from finished document 
Author Message
 newby wants to remove macros from finished document

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



Fri, 03 Sep 2004 17:30:45 GMT  
 newby wants to remove macros from finished document
Hi, Bill,

If I read this correctly, you haven't used the File/New dialog to create a document based on the
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
remove. They stay in the template. When you reopen the document, Word looks for the original
template and "attaches" it, which makes the macros available. If the original template isn't present
(you deleted the template, or you moved the document to a different PC), Word attaches Normal.dot
instead.

If you used some other way of creating the document from the template -- using File/Save As, for
example -- and the macros really are in the document, you can get rid of them by saving the document
as an RTF file and then resaving the RTF as a Word document. But you should avoid that work by doing
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



Fri, 03 Sep 2004 23:00:44 GMT  
 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



Sat, 04 Sep 2004 06:57:54 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. userform macro finishes at bottom of document

2. Remove a macro from all present and future documents (shared post)

3. Can't remove macro from document

4. Removing macros from document

5. Removing macros upon saving a document

6. word macro to remove select bookmarks in a document

7. Removing all Macros From Word Document

8. Removing the title bars: A newby question

9. Removing the [ENABLE MACROS] [DISABLE MACROS] popup window

10. Wanted: VB 6 person to finish database application - Vancouver, BC

11. Macro to insert text or document into active document

12. how to start Word, run a macro, wait till it finishes, then quit

 

 
Powered by phpBB® Forum Software