title: Run macro from Excel while screen is locked
body: <p>I have programmed a macro that will update some excel files automatically and would like it to run when another other script downloads some data files from the internet. </p>
  
  <p>However, I don't have sufficient privileges to check the "Run whether user is logged on or not". </p>
  
  <p>Also, when the screen is locked, Task Scheduler can't seem to open the Excel file that has the macro which runs on file open.</p>
  
  <p>I have browsed quite a few sites and can't really find any satisfactory answer. I would have used the powershell script which moves the mouse one pixel every 9.5 minutes to prevent it from sleeping if it didn't constitute a security risk. I imagine I could use a script that creates an artificial lock screen, locks the keyboard and mouse, while keeping everything alive so it can run the macro and the other powershell scripts, but I don't really have the expertise to do this.</p>
  
  <p>Any other suggestions on how I can get around this? All answers much appreciated!</p>
  
  <p>I really don't understand the answer at <a href="https://stackoverflow.com/questions/34624869/running-macros-at-scheduled-time-when-pc-is-locked">Running macros at scheduled time when pc is locked</a> </p>