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

How do i load explore from my programe?

Status
Not open for further replies.

122388

Programmer
Sep 26, 2003
1
US
I am writting a programe and i am having truble loading an html file in explorer.
 
If you are using Access, the neatest way is to use:

Application.FollowHyperlink "full-Path-to-file"

eg

Application.FollowHyperlink "C:\My Documents\Filename.html"

which will open it in the default web browser.

If you are not using Access for VBA, I would use the Shell command to execute the "START filename" command which would have the same effect, but it opens a command prompt box in the background, which is a little less neat.

John

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top