This_user_name
New Member
- Joined
- Sep 5, 2016
- Messages
- 2
Hi,
I have had some issues trying to schedule the running of a macro on my computer while I'm away.
I'd like to try it with a .bat file.
I am aware of the fact this is possible to do with vbscript but it's not an option because of a plethora of issues:
I managed to run the macro at 5:00 Am every morning for about two weeks, then IT changed the User groups, where the default account on the computer had no rights to run scripts anymore, so I set the Administrator user account for running it, also set it to "run with highest privileges", configured for my OS (Windows 7), so it ran for a couple of days, and then IT changed something again. No idea how, but they somehow accomplished that no scheduler task with a script will start. The script just simply won't start at all. If I click on it manually it will start up both the excel file and the macro, but not on scheduler. I don't know how but it won't even try it, because for last run the scheduler history tells Never for each and every single one of them.
So anyways, it most likely won't work either, but I'd like to get a .bat file that starts my excel file and runs the macro. All I could find anywhere on the internet was for the .bat to open the excel file which had a workbook_open event to start the macro. I don't want to go down that route, because I want to be able to open the file without running a macro that takes 15+ minutes to run.
Is this possible? Is there a code for running a macro in an open excel file?
I have had some issues trying to schedule the running of a macro on my computer while I'm away.
I'd like to try it with a .bat file.
I am aware of the fact this is possible to do with vbscript but it's not an option because of a plethora of issues:
I managed to run the macro at 5:00 Am every morning for about two weeks, then IT changed the User groups, where the default account on the computer had no rights to run scripts anymore, so I set the Administrator user account for running it, also set it to "run with highest privileges", configured for my OS (Windows 7), so it ran for a couple of days, and then IT changed something again. No idea how, but they somehow accomplished that no scheduler task with a script will start. The script just simply won't start at all. If I click on it manually it will start up both the excel file and the macro, but not on scheduler. I don't know how but it won't even try it, because for last run the scheduler history tells Never for each and every single one of them.
So anyways, it most likely won't work either, but I'd like to get a .bat file that starts my excel file and runs the macro. All I could find anywhere on the internet was for the .bat to open the excel file which had a workbook_open event to start the macro. I don't want to go down that route, because I want to be able to open the file without running a macro that takes 15+ minutes to run.
Is this possible? Is there a code for running a macro in an open excel file?