-
3
- #1
'This is how to open a document by placing this code into an Outlook form in order for the command button to open a word document on your computer.
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 website by placing this code into an Outlook form in order for the command button to open a word document on your computer.
Sub CommandButton2_Click()
Set Web = CreateObject
"InternetExplorer.Application"
Web.Visible = TRUE
Web.Navigate "End Sub troy_underwood@owfg.com
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 website by placing this code into an Outlook form in order for the command button to open a word document on your computer.
Sub CommandButton2_Click()
Set Web = CreateObject
"InternetExplorer.Application"
Web.Visible = TRUE
Web.Navigate "End Sub troy_underwood@owfg.com