Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

word and dot files 1

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
Hi,

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?

Thank you.
 
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 !
================================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top