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

Command Button to link to Microsoft Word File 1

Status
Not open for further replies.

mca2k4

Programmer
Jul 6, 2005
16
GB
Hi,

I'm trying to create a command button to directly open up an existing Word document; is there any way to do this with VBCode?

Thanks.
 
You may consider the FollowHyperlink method, the GetObject function, the WshShell.Run method, the Shell function, ....

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Is there a way to perform the described function without using the VB commands PHV listed (such as through macros or otherwise)?
 
if its just a word document u trying to open, i sugguest u try hyperlink. something like:
Application.FollowHyperlink "filename", , True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top