Allow a macro to run, even if the PC is locked

kgkev

Well-known Member
Joined
Jun 24, 2008
Messages
1,291
Office Version
  1. 365
Platform
  1. Windows
i have a rather long routine that I would like to fire off during my lunch break.

I will have the work book open, and I have added the necissary code to the workbook_open event

Code:
Application.OnTime TimeValue("13:00:00"), "AFK UPDATE"

However my PC is set to lock after a few minutes due to group policy. This appears to make excel not trigger the event (at least it states that Macros are disables)

Is there any way round this?

using windows 10 and excel 365
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
What if you place the code in the "Workbook_Open" event, but with NO timer, and then have just Windows Scheduler open the file at the time that you want it to run?
This is how we used to run all of our Scheduled Jobs (we usually did it directly from the server).
 
Upvote 0
Thanks for the reply.

Windows scheduler fails to run the macro as well, I think it because my user account does not have the necessary network privileges to run in a "logged out" state.

I will try with a system admin account locally and see if they works, otherwise it might be necessary to run directly on the server as you suggest.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top