Rejje
11-19-2010, 04:15 PM
Hello!
Depending on different variables I'd like for below code (or something similar) to open a variable "C:\a\b\c\program.exe" which is found a cell named "Run_this_program" in the workbook. The acrobat.exe search path is just an example. "Run_this_program" might just as well say "C:\Program Files\Microsoft Office\Office12\WINWORD.EXE".
Sub Run_exe()
Dim RetVal
RetVal = Shell("C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Acrobat.EXE", 1)
End Sub
Any ideas :think: ?
Depending on different variables I'd like for below code (or something similar) to open a variable "C:\a\b\c\program.exe" which is found a cell named "Run_this_program" in the workbook. The acrobat.exe search path is just an example. "Run_this_program" might just as well say "C:\Program Files\Microsoft Office\Office12\WINWORD.EXE".
Sub Run_exe()
Dim RetVal
RetVal = Shell("C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Acrobat.EXE", 1)
End Sub
Any ideas :think: ?