jmuirman said:
I get an error : "Doc can't be found"
Here's my code - do i have it in the right place?
Intead of posting ALL of the code from your form how about posting just the code
from the button in question? I assume it is this...
**CODE START**
Private Sub Command96_Click()
On Error GoTo Err_Command96_Click
Application.FollowHyperlink "C:\Documents and Settings\john muir\My
Documents\bio - jm2"
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
Exit_Command96_Click:
Exit Sub
Err_Command96_Click:
MsgBox Err.Description
Resume Exit_Command96_Click
End Sub
** CODE END**
Why did you add these three lines?
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
They are not necessary unless you want to control the Word Document from your
code. Your original post only asked about "opening a doc file". All you need
for that is the FollowHyperlink command.