Running .vbs through task Scheduler
I am trying to run a vbs script through Task Scheduler. The code for the vbs script is Dim ObjExcel, ObjWB Set ObjExcel = CreateObject("excel.application") 'vbs opens a file specified by the path below Set ObjWB = ObjExcel.Workbooks.Open("FilePath\CombinePDFs.xlsm") 'either use the Workbook Open event (if macros are enabled), or Application.Run ObjWB.Close False ObjExcel.Quit Set ObjExcel = Nothing Then the Action in Task Scheduler is: Program/Script: "FilePath\CombinePDFS.vbs" With no added argument or "Start in." Trying to run this had caused it to run 20 minutes so far and it doesn't look