I have a dot file. I want to programatically open a doc file, and change it, based on that dot file (but I dont´want to change the dot file). How can I do that?
Set up your template and save as a template .dot file.
You can open it in a macro with something like :-
'--------------------------------------------------
Sub MyMacro()
Documents.Add Template:="h:\templates\MyTemplate.dot", _
NewTemplate:=False
End Sub
'--------------------------------------------------
when it will appear as a normal document (named something like 'Document1'). You can change this document without changing the .dot file.
If you want to change the .dot file, you open it via File/Open (check the name top of screen).
Regards
BrianB
** Let us know if you get something that works !
================================
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.