Windows 10: Task scheduler is running task, but not activating the VBA code in the spreadsheet.

Discus and support Task scheduler is running task, but not activating the VBA code in the spreadsheet. in Windows 10 Software and Apps to solve the problem; I have a VBA code in an excel spreadsheet that is written to save data everyday and create a seperate spreadsheet of said data. The task scheduler is... Discussion in 'Windows 10 Software and Apps' started by BenDavis5-116, Jul 7, 2023.

  1. Task scheduler is running task, but not activating the VBA code in the spreadsheet.


    I have a VBA code in an excel spreadsheet that is written to save data everyday and create a seperate spreadsheet of said data. The task scheduler is used run this program, at a specific time of my choice. Right now, when I run the task, it opens up excel but the actual code embedded in the file does not activate. I've looked through the conditions and triggers and messed around with them but haven't made any progress. Also, I'm not getting any error messages, it just isn't creating the output that it should. When I run the task, the app logo for excel flashes orange. I don't know what that me

    :)
     
    BenDavis5-116, Jul 7, 2023
    #1
  2. SKeithLA Win User

    Task scheduler not completing task

    After upgrading recently to Windows 10, certain tasks stopped working. I decided to create the tasks all over again.

    The way these tasks work is to open an Excel spreadsheet at a certain time in the early morning.

    There is VBA code macro set to run on opening. It accesses information from an SQL Server database, sends it out as an email, and then closes itself. It used to work fine before the upgrade to 10.

    I've tried a lot of different things to get it to work: I am creating the task from the Owner account, which is an administrator. I have tried opening the Task Scheduler "as administrator." (The spreadsheet to be opened is also located in a directory of
    the Owner account, from a trusted location.) I've tried running the task "with highest privileges."

    The problem is not the spreadsheet or the VBA code. I am able to run the code and send out the emails by "manually" opening the spreadsheet. It is just that the task won't open it.

    The task history shows the following as the last three entries: "Created Task Process", "Task Started", and finally "Action Started."

    However, the spreadsheet doesn't seem to be opening.

    Any ideas?
     
    SKeithLA, Jul 7, 2023
    #2
  3. Window's Task Scheduler Not Running

    Hi,

    To assist you better, kindly provide us more details by answering the following questions:

    • Have you tried recreating the task? If so, are you getting the same issue?
    • Have you tried creating a new task?
    Meanwhile, we suggest that you ensure that the Task Scheduler is running. You can verify if the service is running by following these steps:

    • Press Windows key + R on your keyboard.
    • Type services.msc and hit Enter.
    • Under Services (Local), make sure that the Task Scheduler service's status is
      Started or Enabled.
    Should you need further assistance, feel free to get back to us.
     
    Monica Cam, Jul 7, 2023
    #3
  4. Try3 Win User

    Task scheduler is running task, but not activating the VBA code in the spreadsheet.

    Task Scheduler Utility

    Anything you can run manually can be run from Task scheduler.

    I do suggest that you check which power states your computer has because S0 Modern standby [aka S0 Low power idle] inhibits Task scheduler significantly.
    Code:
    If you have S0 then Task scheduler cannot run anything while in S0 i.e. while your display is off.

    Denis
     
    Try3, Jul 7, 2023
    #4
Thema:

Task scheduler is running task, but not activating the VBA code in the spreadsheet.

Loading...
  1. Task scheduler is running task, but not activating the VBA code in the spreadsheet. - Similar Threads - Task scheduler running

  2. Task scheduler is running task, but not activating the VBA code in the spreadsheet.

    in Windows 10 Gaming
    Task scheduler is running task, but not activating the VBA code in the spreadsheet.: I have a VBA code in an excel spreadsheet that is written to save data everyday and create a seperate spreadsheet of said data. The task scheduler is used run this program, at a specific time of my choice. Right now, when I run the task, it opens up excel but the actual code...
  3. Running python code in task scheduler

    in Windows 10 Network and Sharing
    Running python code in task scheduler: I watched a couple videos and looked at a couple websites on how to do this, but when I entered everything they said to and ran it, nothing happened. The program/script came from the command prompt wheres python command, the arguments was my code/file name, and the start in...
  4. Running python code in task scheduler

    in Windows 10 Gaming
    Running python code in task scheduler: I watched a couple videos and looked at a couple websites on how to do this, but when I entered everything they said to and ran it, nothing happened. The program/script came from the command prompt wheres python command, the arguments was my code/file name, and the start in...
  5. Running python code in task scheduler

    in Windows 10 Software and Apps
    Running python code in task scheduler: I watched a couple videos and looked at a couple websites on how to do this, but when I entered everything they said to and ran it, nothing happened. The program/script came from the command prompt wheres python command, the arguments was my code/file name, and the start in...
  6. Run Task Scheduler

    in Windows 10 Gaming
    Run Task Scheduler: I am trying to run a Powershell script in Windows 10 21H2 version using Task bar and the PS window pops up. Later found out that this is happening because the task is run as "Run only when user is logged on".I tried to set this to "Run whether user is logged on or not" and...
  7. Run Task Scheduler

    in Windows 10 Software and Apps
    Run Task Scheduler: I am trying to run a Powershell script in Windows 10 21H2 version using Task bar and the PS window pops up. Later found out that this is happening because the task is run as "Run only when user is logged on".I tried to set this to "Run whether user is logged on or not" and...
  8. Run Task Scheduler

    in Windows 10 Customization
    Run Task Scheduler: I am trying to run a Powershell script in Windows 10 21H2 version using Task bar and the PS window pops up. Later found out that this is happening because the task is run as "Run only when user is logged on".I tried to set this to "Run whether user is logged on or not" and...
  9. Scheduled task not running

    in Windows 10 Customization
    Scheduled task not running: I use the "portable apps" platform to hold a lot of small programs I dont want installed - but even from my C: ssd its very slow to load. So I have set up a scheduled task to run it as soon as the pc becomes idle. [ATTACH] However it does not run. Even when I right-click...
  10. Task Scheduler Not Running

    in Windows 10 BSOD Crashes and Debugging
    Task Scheduler Not Running: I've already tried and a lot of solutions for this but sadly I still don't have a solution. I've also tried these steps in this link (https://computerstepbystep.com/task_scheduler_service.html), still no luck What happened is I'm trying to update my GeForce Experience but I...