+ Reply to Thread
Results 1 to 4 of 4

turning off ON_TIME

  1. #1
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    turning off ON_TIME

    I have an ON_Time routine running. My book is in another county. How do I stop this thing from opening itself up and running. How do I stop a sub that has been set to run On_Time?

    Later edit:
    Cool down. I figured I could kill the reset start time part of the routine. The weirdness of a closed file opening itself threw me for a bit.

    To generalize

    if I have a sub
    Please Login or Register  to view this content.
    What code, in a different sub will tell excel to stop running mySub every 10 seconds.

    I also posted this on the other website.
    Last edited by mikerickson; 04-15-2007 at 12:56 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Mikerickson,

    I have included this portion of the VBA Help for those who may not know about OnTime.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    This example cancels the OnTime setting. Looks like you need to know the next schedule run time.
    Please Login or Register  to view this content.
    Another option is to use a variable that is available to both macros (Boolean type)

    have your cancel macro set it to true and the ontime macro test its true or false setting

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Thanks much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1