ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Openning other files from VBA (https://www.excelbanter.com/excel-programming/347708-openning-other-files-vba.html)

Stuart[_29_]

Openning other files from VBA
 
How would i open a file such as

"C:\work\images\preview.htm"

I have been experimenting with shell but can't get anything to work

I am using Excel97 on XP home




Bob Phillips[_6_]

Openning other files from VBA
 
Why not just open it in Excel, as any other file?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Stuart" wrote in message
...
How would i open a file such as

"C:\work\images\preview.htm"

I have been experimenting with shell but can't get anything to work

I am using Excel97 on XP home






chijanzen

Openning other files from VBA
 
Stuart:

try ,FollowHyperlink Method


Link = "C:\work\images\preview.htm"
ActiveWorkbook.FollowHyperlink Address:=Link, NewWindow:=True

--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"Stuart" wrote:

How would i open a file such as

"C:\work\images\preview.htm"

I have been experimenting with shell but can't get anything to work

I am using Excel97 on XP home






All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com