Note that there are some explanatory texts on larger screens.

plurals
  1. POTask Scheduler running but not finishing or working properly VBscript
    primarykey
    data
    text
    <p>I have a vbscript that runs an excel macro. Everything seems right, but it is not working as I had hoped. The task starts but then just continuously running without doing anything.</p> <p>Let me show you everything I have... I don't get any errors, it just isn't running properly.</p> <p><strong>Task scheduler Timeline</strong></p> <ul> <li><strong>Event 110</strong> Task Triggered by user (Task Scheduler launched "{6569c7af-fed8-456b-8c8e-9d1653b8c15a}" instance of task "\Test" for user "tsee".</li> <li><strong>Event 319</strong> Task engine received message to start task</li> <li><strong>Event 100</strong> Task started - Task Scheduler started "{6569c7af-fed8-456b-8c8e-9d1653b8c15a}" instance of the "\Test" task for user "METRO\tsee".</li> <li><strong>Event 200</strong> Action Started - Task Scheduler launched action "C:\Users\tsee\Desktop\vbsTest\runTest.vbs" in instance "{6569c7af-fed8-456b-8c8e-9d1653b8c15a}" of task "\Test".</li> <li><strong>Event 129</strong> Created Task Process - Task Scheduler launch task "\Test" , instance "C:\Windows\System32\WScript.exe" with process ID 8964.</li> </ul> <p>After that it just says <em>"running"</em> and doesn't execute anything.</p> <p><strong>My VBScript: (runTest.vbs)</strong></p> <pre><code>Dim xlApp Dim xlBook Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Open("\\fileserver\homeshares\Tsee\My Documents\Programming\Task Scheduler\runTask.xlsm", 0, True) xlApp.Run "runTaskTest" xlBook.Close xlApp.Quit Set xlBook = Nothing Set xlApp = Nothing </code></pre> <p><strong>My excel Sheet and Macro: (runTask.xlsm)</strong> </p> <pre><code>Sub runTaskTest() Dim erow As Long erow = Cells(Rows.Count, "A").End(xlUp).Row Cells(erow + 1, 1).FormulaR1C1 = "This test was successful : " &amp; Now ThisWorkbook.Save End Sub </code></pre> <p>Any help would be much appreciated. Thanks in advance!</p> <p>Path network: <img src="https://i.stack.imgur.com/JK2yU.jpg" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload