G
Guest
I ca npen a Word document but not a specific word template. How do I create
a Command to open a word template
a Command to open a word template
Ofer said:Yes, where do you get the location and file name to open?
Dim Location as String, FileName as String
Dim oApp As Object
Location = "c:\MyDir\"
FileName = "MyFileName.Dot"
Set oApp = CreateObject("Word.Application")
oApp.Documents.Open Location & FileName
oApp.Visible = True ' will open the document
this code will open the file name MyFileName.Dot In the current directory
--
If I answered your question, please mark it as an answer. That way, it will
stay saved for a longer time, so other can benifit from it.
Good luck