|hi nbrane where are you !!|
welcome back, i test your code, i create a new folder in (C:\excel) drive and rename my excle file with test. after that, i create a new text file and past your code in this file and save it with .bat file. After double click, i see there is 2 new (.vbs) file was automatically created. I double clicked in the (elx.vbs) file this flie trying to open my excel file and then i get an error massage
Error: 'C:\excel\mycalendar.xlc' could not be found. Check the spelling of the file name, and verify that the file location is correct.
If you are trying to open the file from your list of most recently used files, make sure that the file has not been renamed, moved, or deleted
Source: Microsoft Office Excel
plz more help and advice