L
Leslie Isaacs
Hello All
This works:
Dim stAppName As String
stAppName = "C:\Program Files\Microsoft Office\Office\WINWORD.EXE
C:\pay\Let\exampleletter.doc"
Call Shell(stAppName, 1)
but if I replace the stAppName assignment with :
stAppName = "C:\Program Files\Microsoft Office\Office\excel.EXE C:\Documents
and Settings\les\My Documents\statement 548786.xls"
.... it doesn't work.
It seems that this command doesn't like the spaces in the file pathname or
in the filename (spaces in the pathname to the .exe file are OK, judging by
the fact that the first e.g. above works).
I have tried quotes around the file pathname and/or in the filename, but no
joy.
Any suggestions?
Thanks for any help.
Leslie Isaacs
This works:
Dim stAppName As String
stAppName = "C:\Program Files\Microsoft Office\Office\WINWORD.EXE
C:\pay\Let\exampleletter.doc"
Call Shell(stAppName, 1)
but if I replace the stAppName assignment with :
stAppName = "C:\Program Files\Microsoft Office\Office\excel.EXE C:\Documents
and Settings\les\My Documents\statement 548786.xls"
.... it doesn't work.
It seems that this command doesn't like the spaces in the file pathname or
in the filename (spaces in the pathname to the .exe file are OK, judging by
the fact that the first e.g. above works).
I have tried quotes around the file pathname and/or in the filename, but no
joy.
Any suggestions?
Thanks for any help.
Leslie Isaacs