PDA

Click to See Complete Forum and Search --> : Open a file with a different application


vyvi
Feb 21st, 2001, 06:40 AM
Hi,

I want to open a html file thru excel application.Can anyone tell me how to go about it.

Thanks.

Feb 21st, 2001, 07:05 AM
Use the Shell function.

I'm not to sure what Excel's path is, but...


Shell "C:\Program Files\Microsoft\...\Excel.exe C:\htmlfile.htm",1

It's something like that, just replace with the correct path.

vyvi
Feb 21st, 2001, 07:17 AM
Thanks a lot. It works....

Feb 21st, 2001, 08:06 PM
Hi

You can get the path to Excel from

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Common\InstallRoot and the key name is "Path"

This is for Office 2000.