To open an Excel session the code is:
Call Shell("""F:\Program Files\Microsoft Office\Office\EXCEL.EXE""", 1)
Where you will need to put in your route to excel.exe
In order to open a specific file use:
Call Shell("""F:\Program Files\Microsoft Office\Office\EXCEL.EXE"" ""C:\My Documents\excelprog.xls""", 1)
You should be able to put your route to the file into the second example.
If you don't want to code then these can be put in macros with the action as runap and the command line below as :
"F:\Program Files\Microsoft Office\Office\EXCEL.EXE" "C:\My Documents\excelprog.xls"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.