Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

Don't save macro code in template in generated doc

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy Faust - 02 Dec 2004 22:07 GMT
Hi there.  I have a Word .dot template file that I use to generated
pre-formatted documents.  The template contains some macro code that prompts
the user for some data then generates a new doc.  Anyway the
project/module/code that is contained in the template is also being saved in
the final  document; and I don't want that macro code in my final document.  
So I wanted to change the macro code in my template to modify the generated
document in some way so when it is saved (by the end-user) the macro code
that was contained in the template should NOT be saved with the newly created
doc file.  Any ideas would be appreciated, thanks.
Jean-Guy Marcil - 03 Dec 2004 02:16 GMT
Andy Faust was telling us:
Andy Faust nous racontait que :

> Hi there.  I have a Word .dot template file that I use to generated
> pre-formatted documents.  The template contains some macro code that
[quoted text clipped - 6 lines]
> should NOT be saved with the newly created doc file.  Any ideas would
> be appreciated, thanks.

Unless you wrote some fairly complicated code to achieve that particular
end, the doc generated from a macro-filled-dot will not actually contain the
macros. As long as the doc is attached to the dot, the macros will be
available, but will not be part of the doc. In fact, if you detach the doc
from the dot, or just send the doc to someone who does not have the dot, the
doc will be macro free.
So you really do not have anything special to do here...
Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Andy Faust - 03 Dec 2004 15:15 GMT
Thanks Jean-Guy.

> Andy Faust was telling us:
> Andy Faust nous racontait que :
[quoted text clipped - 17 lines]
> doc will be macro free.
> So you really do not have anything special to do here...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.