When I run VBA code containing SendKeys through Task Scheduler, if I am logged into my computer, everything runs as expected. If my computer is locked, then I get error 17 on the first instance of SendKeys. This is preventing me from running the code overnight, which was my primary intention, as I cannot leave the machine unlocked overnight. Are there any changes to admin preferences/or workarounds to this error?