Using Excel vba Macro to be run through Windows Schedule Task

后端 未结 2 2016
生来不讨喜
生来不讨喜 2021-01-01 00:56

I have a Excel spreadsheet which I\'ve set up a timer to run code into a database. If the spreadsheet is open and the time now is the time set within the timeslot then it ex

2条回答
  •  情话喂你
    2021-01-01 01:19

    In Windows Task Scheduler set: Action: Start a Program Program Script: The Excel.exe with path in full quotes. Add Arguments: The workbook you want to open with full path in quotes

    Check out this link: https://answers.microsoft.com/en-us/windows/forum/windows_8-performance/excel-files-can-not-be-opened-in-task-scheduler-in/aa6cf065-09ac-44d8-b6fb-a2f2ecd9b8cc

    Worked for me after banging my head for a couple hours.

提交回复
热议问题