JWM6
This works
Sub OpenIE()
Dim ieApp As Object
Set ieApp = CreateObject("InternetExplorer.Application")
ieApp.Visible = True
Set ieApp = Nothing
End Sub
--
Dick Kusleika
MS MVP - Excel
www.dailydoseofexcel.com
JWM6 wrote:
The VBA shell command is as follows:
programPath = "C:\Program Files\Internet Explorer\iexplore.exe" '
works
'programPath = "iexplore.exe" ' does not work
Shell programPath + " " + fileToLaunch, vbNormalFocus
but the drawback is that the invoked program (iexplore.exe, at least
in my case) needs to have the FULL PATH to where the program exists =
the "C:\Program Files\Internet Explorer" which may or may not work on
someone elses computer. This hardcoding will not work and is not
transportable.
Is there a trick to find where the executing program lives? or
launching it without the path?
Thanks,