URGENT: MSWORD Query
Posted on 2006-04-15
The following function opens a word document
Public Function OpenNewDoc(Optional docname As String, Optional ro As Boolean = False, Optional atrfl As Boolean = False, Optional bVisible As Boolean = True)
If Len(docname) > 0 Then
Set wrdDoc = wrdApp.Documents.Open(docname, ReadOnly:=ro, addtorecentfiles:=atrfl)
Set wrdDoc = wrdApp.Documents.Add
Set wrdSelection = wrdApp.Selection
wrdApp.Visible = bVisible
What I would like to do, is open a template document, save it with a predefined file name, and then open the document ...
As much as I can I would also like to use the word object itself to do this ...
I am using Word 11.