I have a task built in "Windows Task Manager" that is set to open a batch file (.bat) automatically at a specific time a day everyday.
That batch file is set to open an excel file loaded with an auto macro (.xlsm)
The code in the macro opens a specific workbook from a shared network drive ...
This has been working perfectly for months and months ...
All of the sudden I am getting the following error when the above code is attempted ...
Here is what confuses me most ...
If I simply open ANY excel file. Even a blank workbook ... my task kicks off just fine. If I open the batch file manually instead of automatically opening it with task manager ... it works fine ... but if I close excel down and try to kick the task off from task manager I am getting the error.
I have uninstalled and reinstalled excel.
I am accessing a file in a shared network drive in the above code. I am inclined to think this has something to do with it because if I switch the above code to open a local file on my PC's desktop, the task will kick off just fine no matter what.
What is the difference between automatically opening files from task manager and manually opening them?
Also, what is the difference between automatically opening files from task manager with excel open and automatically opening files from task manager with excel closed?
Thank you for your help
That batch file is set to open an excel file loaded with an auto macro (.xlsm)
The code in the macro opens a specific workbook from a shared network drive ...
Code:
Workbooks.Open Filename:="V:\vai\IORPIASCH.CSV"
This has been working perfectly for months and months ...
All of the sudden I am getting the following error when the above code is attempted ...
Run-time error '1004':
Sorry, we couldn't find V:\vai\IORPIASCH.CSV. Is it possible it was moved, renamed or deleted?
Here is what confuses me most ...
If I simply open ANY excel file. Even a blank workbook ... my task kicks off just fine. If I open the batch file manually instead of automatically opening it with task manager ... it works fine ... but if I close excel down and try to kick the task off from task manager I am getting the error.
I have uninstalled and reinstalled excel.
I am accessing a file in a shared network drive in the above code. I am inclined to think this has something to do with it because if I switch the above code to open a local file on my PC's desktop, the task will kick off just fine no matter what.
What is the difference between automatically opening files from task manager and manually opening them?
Also, what is the difference between automatically opening files from task manager with excel open and automatically opening files from task manager with excel closed?
Thank you for your help