eugeneding
MIS
Hi,
I'm trying to use VBA code to open a file (say "file1') generated by JDE. The code is simple:
"Workbooks.Open file1"
When I excute it, there is a error msg:" Method 'open' of object 'Workbooks' failed".
If I open it manually, it shows "Excel found unreadable content in file1. Do you want to recover the contents of this workbook?" Then I have to click "Yes" to open it.
Does anyone know how to overcome it?
Thanks,
Eugene
I'm trying to use VBA code to open a file (say "file1') generated by JDE. The code is simple:
"Workbooks.Open file1"
When I excute it, there is a error msg:" Method 'open' of object 'Workbooks' failed".
If I open it manually, it shows "Excel found unreadable content in file1. Do you want to recover the contents of this workbook?" Then I have to click "Yes" to open it.
Does anyone know how to overcome it?
Thanks,
Eugene