Passing in file name

W

wing

I have need to initial Excel using a line command
(Excel.exe testfile.xls) passing in the fiel name. This
works fine unless the file name includes a space (test
file.xls) in which case, it will try to open test.xls and
file.xls separately. Is there a way I can pass in a file
name that includes blanks?
 
G

Gord Dibben

wing

Wrap the command line path in quotes as in.....

"C:\yourpath\toexcel\test file.xls"

Gord Dibben XL2002
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top