Passing in file name

  • Thread starter Thread starter wing
  • Start date Start date
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?
 
wing

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

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

Gord Dibben XL2002
 
Back
Top