D
Dorian
From outside of MS Word (actually in MS Access), I need to create a new blank
word document based on a template and give the document a name.
Does anyone know how to do this?
I see I can use documents.add to create a new blank document based on a
template but how do I give the document a name? The name must be very
specific and I cannot rely on the user to type it in by doing a 'save' or
'save as'.
Thanks.
Here is my code so far:
Set objW = CreateObject("Word.Application")
objW.Visible = True
objW.ChangeFileOpenDirectory strPath
objW.Documents.Add "K:\Winword\TEMPLATE\OALSrules.dot", False,
wdNewBlankDocument, True
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
word document based on a template and give the document a name.
Does anyone know how to do this?
I see I can use documents.add to create a new blank document based on a
template but how do I give the document a name? The name must be very
specific and I cannot rely on the user to type it in by doing a 'save' or
'save as'.
Thanks.
Here is my code so far:
Set objW = CreateObject("Word.Application")
objW.Visible = True
objW.ChangeFileOpenDirectory strPath
objW.Documents.Add "K:\Winword\TEMPLATE\OALSrules.dot", False,
wdNewBlankDocument, True
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".