+ Reply to Thread
Results 1 to 3 of 3

Create a time delay at end of procedure that will then call on next procedure

  1. #1
    Registered User
    Join Date
    03-31-2013
    Location
    Geraldine NZ
    MS-Off Ver
    Excel 2003, 2010
    Posts
    6

    Create a time delay at end of procedure that will then call on next procedure

    I have a workbook generated and formatted using VBA that displays names and scores from another workbook to display a scoreboard. Using rows.hidden procedures I can filter the data to show the various classes of the scores. All good so far, but after filtering the data I need to create a delay before the procedure calls the next macro that will refilter the classes. The workbook is displayed on a second monitor, while data is updated in the original workbook. Application.Wait will not work as it freezes excel while waiting. What other method could be used?
    Last edited by Clay Shooter; 03-31-2013 at 05:57 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Create a time delay at end of procedure that will then call on next procedure

    Hi, Clay Shooter,

    have you tried Application.OnTime to call the macro at a given time if the amendment of DoEvents canīt help with Application.Wait?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    03-31-2013
    Location
    Geraldine NZ
    MS-Off Ver
    Excel 2003, 2010
    Posts
    6

    Re: Create a time delay at end of procedure that will then call on next procedure

    Hi HaHoBe,
    Yes I tried Application.OnTime but I could not get variable values for the start time to work, however after your suggestion I rechecked and discovered that I had a remnant code that was calling itself circularly - thus always extending the OnTime value. Sometimes it pays to think about things carefully before asking questions. Thanks for your response.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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