Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8649231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:30:35+00:00 2026-06-12T13:30:35+00:00

I am designing a dashboard-like workbook in Excel and I’ve created a routine to

  • 0

I am designing a dashboard-like workbook in Excel and I’ve created a routine to show some Charts from time to time automatically using the Application.OnTime method from Excel VBA, but I am having some problems debugging my routines.

There are three scheduled routines:
the first takes a snapshot of the data for the charts, the second starts the exhibition of the charts and the third, started by the second, cicles through the charts, showing them for a brief period of time

My main problem is to keep track of the last execution of the routines, because each one of them schedule themselves with Application.OnTime

So I have two questions:

One: Is there a way to see the scheduled routines from Application.OnTime in Excel?

Two: Is there a better way to schedule repetitive routines using VBA?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:30:36+00:00Added an answer on June 12, 2026 at 1:30 pm

    There’s no way that I know to get what is scheduled. When I was debugging a program that used OnTime, I made my own log so I could see what got scheduled and when.

    Public Function WriteLog(bSchedule As Boolean) As Boolean
    
        Dim sFile As String, lFile As Long
        Dim sOutput As String
        Dim bReturn As Boolean
    
        Const sSOURCE As String = "WriteLog()"
    
        On Error GoTo ErrorHandler
        bReturn = True
    
        sFile = Environ("USERPROFILE") & gsLOGPATH & gsTIMERLOG
        lFile = FreeFile
    
        sOutput = bSchedule
        sOutput = sOutput & "," & gdtNextRun
        sOutput = sOutput & "," & gsSCHEDMACRO
        sOutput = sOutput & "," & Format(Now, "mm/dd/yyyy hh:mm:ss")
    
        Open sFile For Append As lFile
    
        Print #lFile, sOutput
    
        Close lFile
    
    ErrorExit:
        On Error Resume Next
        WriteLog = bReturn
        Exit Function
    
    ErrorHandler:
        bReturn = False
        If bCentralErrorHandler(msMODULE, sSOURCE) Then
            Stop
            Resume
        Else
            Resume ErrorExit
        End If
    
    End Function
    

    This uses an error handling system, so you’ll have to fix it up for yours or remove the error handling stuff.

    • gdtNextRun is a global date variable for the next scheduled run
    • gsSCHEDMACRO is a global string constant for which macro will run
    • bSchedule logs whether I’m scheduling or un-scheduling.

    If you have multiple OnTimes going, you’ll need an array or collection to keep track. Mine was just one macro either scheduled to run or not, so my global variable/constant did the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I designing an programming a website using Symfony2. I completed some parts and checked
Designing a new system from scratch. I'll be using the STL to store lists
while designing my user control, i encountered the following problem: i would like to
Im designing my school's website and I kind of want to do like a
I am currently designing a dashboard feed that functions similar to the facebook feed.
I have a dashboard page in which I am using various MSCharts. I have
Designing my layout, I selected an EditText with the format time, and it put
I am designing a dashboard to display corporate metrics (currently with ASP.net 3.5 in
Is designing for Google Tv is different from tablet. What should I need to
When designing a client/server architecture, is there any advantage to multiplexing multiple connections from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.