Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>just to expand on d-stroyer's comment.</p> <p>You first need to make sure your macro setting is enabled at all times because this will ensure that everytime your workbook opens, the macro runs without any notification or confirmation.<br/></p> <p>To do this,<br/> Excel Options > Trust Center > Trust Center Settings (Button) > Macro Settings > Enable All macros > OK<br/></p> <p>Now that your macro is enabled, you need to ensure the macro will run as soon as the workbook opens. So, go to your VB editor and open the ThisWorkbook module > Create a workbook_open() event and copy and paste your "OnTime code" into workbook_open event > Save &amp; Close<br/></p> <p>Now, everytime you open the workbook, the workbook should run the desired code at 8:47.</p> <p>Go to Task Scheduler, on the right click on "Create Basic Task...". Give the task a name and click next. Select a trigger (Daily in the case you mentioned here) and click next. Set the time and recurrence period and click next. In the Action, select "Start a program" and click next. In the Program/script text box browse for your Excel file and click next (leave the other text boxes empty). Click on Finish. I just tried this on my PC now, and it works.</p> <p><a href="http://social.technet.microsoft.com/Forums/windows/en-US/ce659a72-88e1-448b-8b45-ff2cb4ba9da8/starting-excel-file-with-task-scheduler" rel="nofollow">From Windows Help Forum</a></p> <p>PS: Make sure you set the scheduler to open the excel file BEFORE 8:47 (so maybe 8:46).</p> <p>Cheers,<br/> kpark</p> <p>EDIT: try running this to see if your OnTime is working..</p> <pre><code>Sub RunOnTime() Application.OnTime Now + TimeSerial(0, 0, 10), "theSub" End Sub </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    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