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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'This is how to open a document by 3

Status
Not open for further replies.

troyu

Programmer
Nov 21, 2000
185
CA
'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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top