+ Reply to Thread
Results 1 to 7 of 7

OnTime or Wait functions

  1. #1
    Registered User
    Join Date
    07-15-2010
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    51

    OnTime or Wait functions

    Hey all,

    Is there any way to find what excel has listed

    application.onTime que?

    If I have 4 macro's waiting to be run. There any way to list those macro execution times?

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: OnTime or Wait functions

    Surely, your code will have set it, so you know.

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: OnTime or Wait functions

    Hi Slyone2;

    Seems to me you could do it this way:
    Please Login or Register  to view this content.
    And design all scheduled subs:
    Please Login or Register  to view this content.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  4. #4
    Registered User
    Join Date
    07-15-2010
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    51

    Re: OnTime or Wait functions

    This is way above my level...could you simplify?

  5. #5
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: OnTime or Wait functions

    Hi Slyone2;

    I guess I misunderstood your question. I thought that you were using macros to set the OnTime schedules. I was giving you some code to use instead of what I thought you were already using.

    I now am guessing that you're hoping there is a way to see what is scheduled. Which I don't believe there is.

    To simplify this, I would have to know how you are currently scheduling the OnTime procedures.

  6. #6
    Registered User
    Join Date
    07-15-2010
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    51

    Re: OnTime or Wait functions

    I set using this:
    Please Login or Register  to view this content.
    Would like something like this
    A next run 4:00
    B next run 4:10

    My problem is there is no way to check if Ontime function is working.
    And, when VBA crashes,I cant check if ontime is still set or DO i have to reset.
    Last edited by Slyone2; 07-20-2010 at 07:47 PM.

  7. #7
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: OnTime or Wait functions

    Hi Slyone2;
    You can run your macros like this. That way if they are still set they would get cancelled before resetting them.
    Please Login or Register  to view this content.

+ 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