+ Reply to Thread
Results 1 to 2 of 2

Progress indicator or countdown timer while refresh macro is running

Hybrid View

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    switzerland
    MS-Off Ver
    Excel 2013
    Posts
    4

    Progress indicator or countdown timer while refresh macro is running

    Hi everybody,
    I'm looking for a way to show a progress indicator based on time (5 minutes) that will display while a 'refresh all' macro is running. The queries take 5 minutes to run, I've seen code for a countdown timer, but nothing that displays while the refresh is running in the background...
    All and any help gratefuly received.
    Dan

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Progress indicator or countdown timer while refresh macro is running

    Insert the macro start at the start of your code.
    Leave scroll as a separate macro.

    Dim TimeLeft As Integer
    Sub start()
    Application.OnTime Now + TimeValue("00:00:05"), "Scroll"
    TimeLeft = 360
    End Sub
    
    Sub scroll()
    TimeLeft = TimeLeft - 5
    If TimeLeft > 30 Then
    If TimeLeft / 10 - Int(TimeLeft / 10) = 0.5 Then Display = TimeLeft
    Application.OnTime Now + TimeValue("00:00:05"), "Scroll"
    Application.StatusBar = Space(Int(TimeLeft / 2)) & Int(TimeLeft / 30) / 2 & " Minutes To go"
    Else
    Application.StatusBar = ""
    End If
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Donut Style Progress Indicator not executing while other code is running
    By UCAnalytics in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2013, 05:20 AM
  2. [SOLVED] VBA/Macro Timer-Stopwatch-Countdown
    By jaddie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2013, 01:44 PM
  3. long running macro - progress indicator tips needed
    By jmac1947 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2012, 01:02 AM
  4. stop this countdown timer macro
    By jacksten in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-25-2012, 10:57 PM
  5. Macro Progress Indicator
    By crs245 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2009, 02:37 PM

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