David Sisson skrev:
Yes, but this will add an extra document - what I want to do is, make a
new document based on a specifik template, that already contains some
text, and I want the newly created document to be the active one, which
it not always is, as previously described.
If I use Documents.Add() - I'll get an extra document.
I would like to be able to select Files -> New
Then select template and go
Russ - 25 Jun 2007 08:21 GMT
Read this message thread about open document events.
It sounds like you want to put your activate command in the
Document_Open()
ThisDocument.Activate
End Sub
event of the ThisDocument module of the template.
http://tinyurl.com/2zkoax
> David Sisson skrev:
>>
[quoted text clipped - 7 lines]
> I would like to be able to select Files -> New
> Then select template and go

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
HHDM - 25 Jun 2007 19:29 GMT
Thanks Russ
You got me on the right track
I now use the Document_New()
then use a public variable:
documentname = ActiveDocument.Name
and I can then use Documents(documentname).Activate where appropriate
Doug Robbins - Word MVP - 25 Jun 2007 10:17 GMT
Take the time to look at the .Add function for the Document object in the
Visual Basic Help File and all will be revealed.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> David Sisson skrev:
>>
[quoted text clipped - 7 lines]
> I would like to be able to select Files -> New
> Then select template and go