S
Sapper
Hi, put a command button on a form to run Excel and open a file, I've tried
it two ways, one works, the other doesn't.
Any ideas why?
Here's the command(s) I use:
1 - "excel.exe E:\All_WO_Data.xls"
2 - "excel.exe \E:\All WO Data.xls"
The first works, the second doesn't, I feel that the spaces in the file
names have something to do with it, because I get the error that it can't
open file All .xls; then can't open file WO .xls; then can't open file Data
..xls.
I've tried it in a sub-directory named E:\work File, this has the same
effect.
Does the spaces have that much effect on the application? If so I've got a
lot of changes to make to my files and greater problems with my
sub-directories names, which are on a server - I cannot change them, they
are fixed by the admin people.
Any suggestions would be really helpful. TIA, Colin
it two ways, one works, the other doesn't.
Any ideas why?
Here's the command(s) I use:
1 - "excel.exe E:\All_WO_Data.xls"
2 - "excel.exe \E:\All WO Data.xls"
The first works, the second doesn't, I feel that the spaces in the file
names have something to do with it, because I get the error that it can't
open file All .xls; then can't open file WO .xls; then can't open file Data
..xls.
I've tried it in a sub-directory named E:\work File, this has the same
effect.
Does the spaces have that much effect on the application? If so I've got a
lot of changes to make to my files and greater problems with my
sub-directories names, which are on a server - I cannot change them, they
are fixed by the admin people.
Any suggestions would be really helpful. TIA, Colin