hi i have a problem whtn i trying to use runapp function to open a specific excel file, the problem is the path name of the folder
e.g. when i tried
Dim stAppName As String
stAppName = "excel.exe D:\POLICYTABLE.xls"
Call Shell(stAppName, 1)
it got no problem and open the file
but when i changed to
Dim stAppName As String
stAppName = "excel.exe D:\stAppName = "excel.exe D:\ABC folder\NEW Project\POLICYTABLE.xls"
Call Shell(stAppName, 1)
it cannot open the file and i think the space between ABC and folder, NEW and Project are causing the problem. anyone got any ideas that i can solve this problem ?
thanks.
e.g. when i tried
Dim stAppName As String
stAppName = "excel.exe D:\POLICYTABLE.xls"
Call Shell(stAppName, 1)
it got no problem and open the file
but when i changed to
Dim stAppName As String
stAppName = "excel.exe D:\stAppName = "excel.exe D:\ABC folder\NEW Project\POLICYTABLE.xls"
Call Shell(stAppName, 1)
it cannot open the file and i think the space between ABC and folder, NEW and Project are causing the problem. anyone got any ideas that i can solve this problem ?
thanks.