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

Viewing custom .htm file 1

Status
Not open for further replies.

DH

Programmer
Dec 8, 2000
168
I have trapped the "F1" key with a keydown procedure. Now I need to tell it to open a custom .htm file that I have created.

Any suggestion on how to structure the code to open my filename.htm file. I have been trying with "Call Shell" but I believe this is only for executable files and I am only trying to display a local html file.

Thanks,
DH
 
You could try using the executable for your browser passing the file name for the htm file you want to view.

Dim RetVal as Variant
RetVal = Call Shell "C:\ProgramFiles\Netscape.exe MyWebPage.htm", 1

I hope this helps

Steve B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top