My question is simple:
How do I open an already saved Office document (not a new document) using VBscript in an Outlook form? I would like to use a Command Button to do so, and open the Office document.
Sub CommandButton1_Click()
Set Word = CreateObject("Word.Application"
Word.Visible = TRUE
Word.Documents.Open("C:\My Documents\Myfile.doc"
End Sub
This is how to open a web site with a command button:
Sub CommandButton2_Click()
Set Web = CreateObject
"InternetExplorer.Application"
Web.Visible = TRUE
Web.Navigate "
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.