+ Reply to Thread
Results 1 to 4 of 4

Countdown or timer display while external links are refreshed

  1. #1
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    Countdown or timer display while external links are refreshed

    I have a workbook with about 15 external links to sites to download currency market information (Forex).

    When I refresh my main sheet it takes about 3 or 4 minutes to complete, what I want is to display some sort of countdown to the end of the update cycle. It could be for instance a countdown from a number to 0 at the end of the cycle. Maybe if possible to actually display in a cell the total number of connections I have and a countdown from this number, or even better, showing the actual web addresses currently being downloaded from?

    If this is not possible or too complicated, a simple counter from 10 to 0 would also do.

    Basically anything to give an indication of how long is left.

    thanks

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Countdown or timer display while external links are refreshed

    Hi John19,

    Sounds like a job for the StatusBar.

    See the attached sample file which contains the following code (in ordinary code module ModStatusBar):
    Please Login or Register  to view this content.
    It is a best practice to declare all variables. If you misspell a variable in your code, VBA will silently assume it is a Variant variable and go on executing with no clue to you that you have a bug. Go to the VBA development window, click Tools, Options, and check "Require Variable Declaration." This will insert the following line at the top of all new modules:
    Please Login or Register  to view this content.
    This option requires all variables to be declared and will give a compiler error for undeclared variables.

    If Macro and VBA help is needed the following may help:
    To enable Macros and to Run Macros see the following:
    http://office.microsoft.com/en-us/ex...010031071.aspx
    http://office.microsoft.com/en-us/ex...010014113.aspx
    If help is still needed do a google search for 'youtube excel enable macro' and/or 'youtube excel run macro'.

    To access Visual Basic (VBA) see:
    http://www.ablebits.com/office-addin...a-macro-excel/
    a. Click on any cell in the Excel Spreadsheet (may not be needed).
    b. ALT-F11 to get to VBA.
    c. CTRL-R to get project explorer (if it isn't already showing).
    d. Double Click on a 'Module Name' in 'Project Explorer' to see code for that module.

    Debugger Secrets:
    a. Press 'F8' to single step (goes into subroutines and functions).
    b. Press SHIFT 'F8' to single step OVER subroutines and functions.
    c. Press CTRL 'F8' to stop at the line where the cursor is.
    d. 'Left Click' the margin to the left of a line to set (or clear) a BREAKPOINT.
    e. Press CTRL 'G' to open the IMMEDIATE WINDOW. 'debug.print' statements send their
    output to the IMMEDIATE WINDOW.
    f. Select View > Locals to see all variables while debugging.
    g. To automatically set a BREAKPOINT at a certain location put in the line:
    'Debug.Assert False'
    h. To conditionally set a BREAKPOINT at a certain location put in lines similar to:
    if i >= 20 and xTV20 > 99.56 then
    Debug.Assert False
    endif
    i. A variable value will be displayed by putting the cursor over the variable name.

    To manually set a breakpoint, see http://www.wiseowl.co.uk/blog/s196/breakpoints.htm

    Lewis

  3. #3
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    Re: Countdown or timer display while external links are refreshed

    thank you for that, BUT I'm completely lost.

    What does this do? where do I put it and how?

    I downloaded your file and clicked it but didn't understand a thing about.

    All I want is a countdown timer to show how long I have to wait.

    Please give me the very basic of instructions to get this to work.

    thank you

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Countdown or timer display while external links are refreshed

    It's difficult to answer your question, especially since you apparently do not have the skills to implement a solution yourself, which is OK. That is why we are here to help.

    To get more information, you are going to have to upload a sample workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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. Display an Countdown timer on sheet
    By siddisi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2012, 08:57 AM
  2. countdown timer
    By pka in forum Excel General
    Replies: 0
    Last Post: 10-23-2011, 09:18 AM
  3. Display all external links
    By Gabor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2010, 10:55 AM
  4. Display External Links
    By Chandrashekhar in forum Excel General
    Replies: 1
    Last Post: 06-22-2008, 01:28 PM
  5. Countdown timer
    By ukmxer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2007, 02:49 AM
  6. Countdown timer
    By Nemeo in forum Excel General
    Replies: 0
    Last Post: 05-23-2007, 03:12 AM
  7. HELP for COUNTDOWN TIMER
    By CC in forum Excel General
    Replies: 3
    Last Post: 05-08-2006, 07:55 AM
  8. Is a countdown timer possible?
    By aharmer in forum Excel General
    Replies: 1
    Last Post: 02-07-2005, 10:06 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