Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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, -- JWM6 ------------------------------------------------------------------------ JWM6's Profile: http://www.excelforum.com/member.php...o&userid=33413 View this thread: http://www.excelforum.com/showthread...hreadid=532972 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Shell command and Notepad | Excel Programming | |||
Shell Command | Excel Programming | |||
Shell command | Excel Programming | |||
xp shell command using vba | Excel Programming | |||
SHELL command | Excel Programming |