Making a dokument, not refering to original template.- 
Author Message
 Making a dokument, not refering to original template.-

I have .dot file with a "AutoNew" macro to make some initial stuff
f.ex. date insertion.
After I have finished and saved the .doc file there is still some
reference back to the original template.

I have observed that I, when I open the resulting .doc file, still was able
to see the "AutoNew" macro under Tools/Macro menu.

After renaming the original template I found no macros when I opened .doc
file.
There most remain some reference from the .doc file back to the original
.dot file.

Is it possible to avoid this reference to the original template and its
macros?
If so, how?

Ebbe



Wed, 20 Jul 2005 05:15:45 GMT  
 Making a dokument, not refering to original template.-
You can, at the end of your AutoNew macro, have the document attach itself
to the normal.dot template.
--
Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>

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

See also the MVP FAQ: <URL: 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.


Quote:
> I have .dot file with a "AutoNew" macro to make some initial stuff
> f.ex. date insertion.
> After I have finished and saved the .doc file there is still some
> reference back to the original template.

> I have observed that I, when I open the resulting .doc file, still was
able
> to see the "AutoNew" macro under Tools/Macro menu.

> After renaming the original template I found no macros when I opened .doc
> file.
> There most remain some reference from the .doc file back to the original
> .dot file.

> Is it possible to avoid this reference to the original template and its
> macros?
> If so, how?

> Ebbe



Wed, 20 Jul 2005 13:23:14 GMT  
 Making a dokument, not refering to original template.-
How do I do that?

I have read your links. I found many interesting things, but I didn't found
what I looked for or didn't understood, what I read ;-)

Is it possible to give a code example or a more detailed description?

Ebbe



Wed, 20 Jul 2005 21:45:09 GMT  
 Making a dokument, not refering to original template.-
Ebbe

Given that the normal.dot is in the User Templates folder then this
ought to do the trick:

    ActiveDocument.AttachedTemplate =
Application.Options.DefaultFilePath(wdUserTemplatesPath) & _
      "\Normal.dot"

But what I would really have is a Blank template and then attach it to
that rather than normal.dot.

Regards
  Malc
  www.dragondrop.com



Wed, 20 Jul 2005 22:26:29 GMT  
 Making a dokument, not refering to original template.-
Ups! I mailed my answer to Malcom in stead of to the group.
Here it is!
------------
Hey Malc!

You could the right words:
    ActiveDocument.AttachedTemplate = ""

Now the resulting document appears as produced without using a template!

Thank You

Ebbe



Thu, 21 Jul 2005 05:50:16 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Refering to Functions and Subs held in one global template from another global template

2. Small AVI does not appear as original size

3. problem using component with asp page -- result of function not returned, instead original value returned

4. Problem making references at run-time to Startup templates

5. Making Fields in Template Required

6. Making more changes to a template file after creating and saving it

7. Making templates....

8. ACCURACY of making templates on a printer

9. close and then open the same dokument

10. Passing information from explore to word dokument

11. close and then open the same dokument

12. Suchformular in Word-Dokument

 

 
Powered by phpBB® Forum Software