Sign in to follow this  
Followers 0
DaLiMan

Open Specific File

4 posts in this topic

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???

Share this post


Link to post
Share on other sites



How about this?

RunWait( @Comspec & " /c start c:\path\filename.xls")

Jeff

Share this post


Link to post
Share on other sites

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


It's my job to comfort the disturbed and to disturb the comfortable.

Share this post


Link to post
Share on other sites

I've tried them both and they work great. (duh) :D

Thanks guys!!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0