Variale Size in a template-generated document

  • Thread starter E. Omar Troccoli K.
  • Start date
E

E. Omar Troccoli K.

En blancoHi,

I made a custom template for my job with a lot of macros. The final size of the template is about 150 KB. The template is working well and make the appropiate tasks fine. The template is the basic document for my office, and the people work in it and send me her work via e-mail, always. But I noted than many files have the .dot atributes (or extension) and the size is the same than the original template: when you run it, you see the final documents with all the macro inside the document, and too others documents that have the .doc extension, the size of the file es about 25 kb and no have macros at all.

I wonder why it happens and the way for generate always a .doc file without the macros, all the time. There is a big diference for us dowloading a lot of big document with macros (without utilitily after generate the document) and a simple and "light" .doc document without any macro at all.

Then, I need a code or any sugestion that help me to eliminate all the macros in the document generated with my template.

Any helps will apreciate. Thanks in advance and... forgive my english, please,


Omar
From Argentina
 
H

Harold Kless[MSFT}

Hi Omar,
One of the uses of a template (.dot) is to create new documents. When a
document is created from a template and saved by default it will have a doc
extension. The document that was created from the template retains a link
or attachment to the template and the code and other objects are retained
in the template not passed to the document. In other words, when you save
a document based on a template the code that was in the template is not
saved in the document.

If you open a template from Windows explorer by double clicking on it a new
document will be created. On the other hand if you open the template
directly from the Word interface, the template will be opened. When the
user makes changes and saves it will be saved as a template (dot extension)
and will contain the code and other object unique to a template.

How to minimize opening the template directly.
1. password protect the template for either opening or editing. Users will
be able to create new documents.
2. save the template to User Templates or the Workgroup Templates folders.
Then the user could go to file new to create a new document from the
template.
3. Educate users not to attempt to open the template in Word.

Hope that this helps clarify the issue.
Harold Kless, MCSD
Support Professional
Microsoft Technical Support for Business Applications
(e-mail address removed)

--


This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top