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

Alternative to Hyperlink 2

Status
Not open for further replies.

yont11

IS-IT--Management
Apr 13, 2006
19
AU
I have a hyperlink button on a form that when clicked takes the user to a folder on a shared drive where they can choose a mail merge precedent letter. Is there a way to do this through VBA code without using a hyperlink? Thanks.
 
yont11,
If you simply want to open Windows Explorer and make it point to a particular folder you could use something like this (change the N:\Music to the path on the folder of your shared drive) :
Code:
Shell "explorer [i]N:\Music[/i]", vbNormalFocus

Hope this helps,
CMP

[small]For the best results do what I'm thinking, not what I'm saying.[/small]
(GMT-07:00) Mountain Time (US & Canada)
 
Another option is FollowHyperlink

[tt]FollowHyperlink "C:\Documents\"
FollowHyperlink "C:\Data\TT.pdf"[/tt]
 
Thanks CMP & Remou. Does exactly what I wanted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top