DaLiMan Posted April 23, 2004 Posted April 23, 2004 Hi there, Does anyone know a way to open a specific Excel file? I know how to open Excel (Run command), but accually I want to open a template or a document. Does someone know a way???
jterwelp Posted April 23, 2004 Posted April 23, 2004 How about this? RunWait( @Comspec & " /c start c:\path\filename.xls") Jeff
Marc Posted April 23, 2004 Posted April 23, 2004 Another example (if .xls is not assigned to exel) would be run ("c:\office\Excel.exe" & " d:\file.xls", "") would start Excel using the file d:\file.xls Hope this helps, Marc Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)
DaLiMan Posted April 26, 2004 Author Posted April 26, 2004 I've tried them both and they work great. (duh) Thanks guys!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now