Open an Excel file from VB6
Hello,
I try to open an excel file to go write an application from VB6. The file name is contained in a variable and I can not open the file. For info, here is the code
Myshell = Shell ( "C: \ Program Files \ Microsoft Office \ Office12 \ EXCEL.exe file", 1)
File is defined earlier is the format c: \ folder \ un fichier.xls
Thank you for your help.
Re: Open an Excel file from VB6
Hello,
Tests like this:
Myshell = Shell ( "C: \ Program Files \ Microsoft Office \ Office12 \ Excel.exe" & File, 1)
Re: Open an Excel file from VB6
Hi and thank you for the info. I tried and it does not work. He sends me the file is found. If I file by replacing the true path then it works.
In debug mode, the file is defined as "c: \ my folder \ my file.xls"
You think that was the quotes that put the bazaar, and if so, how can we remove them?
Thank you again