Consulting

Results 1 to 2 of 2

Thread: Stop running macro after specific time

  1. #1

    Stop running macro after specific time

    Hi,

    I need to stop running a macro and shut down the computer after 10pm. Is there a syntax to do it?

    I have been trying to use ontime but it does not seem to work....

  2. #2
    VBAX Regular
    Joined
    Oct 2009
    Location
    Fremont, CA
    Posts
    72
    Location

    Please clarify

    I am not clear which part of your task you were unable to accomplish with ontime. If it was the shutting down of the macro I would suggest using a timer inside the macro. If you had trouble with shutting down the PC you might want to take a look at http://www.vbaexpress.com/kb/getarticle.php?kb_id=515. I didn't test the proposed shutdown routines, but they seemed straightforward.
    Hope this helped,
    Rolf Jaeger
    SoarentComputing
    Software Central

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •