opening a saved word document (1 Viewer)

adamburton

Registered User.
Local time
Today, 02:57
Joined
Jan 24, 2003
Messages
75
This is such a stupid question, Im almost too embarrassed to ask. Can anybody tell me how to open a saved Word doc from a command button. I just cant seem to find out how to do it. Thanks in advance.
 

raffle

New member
Local time
Today, 02:57
Joined
Dec 12, 2002
Messages
7
Hi There

This seemed to work for me as an on click event


Private Sub CmdQuickWins_Click()
DocName.Verb = -2
DocName.Action = acOLEActivate
End Sub


Raffle
 

ghudson

Registered User.
Local time
Yesterday, 21:57
Joined
Jun 8, 2002
Messages
6,195
Try this in the onclick event of your button...

FollowHyperlink ("X:\Files\YourWordDocument.doc")

HTH
 

adamburton

Registered User.
Local time
Today, 02:57
Joined
Jan 24, 2003
Messages
75
Thank you!

It worked! Thank you so much!!!

You've just saved me unnessecary stress!!

Regards,
Adam.
 

Users who are viewing this thread

Top Bottom