+ Reply to Thread
Results 1 to 4 of 4

Time delayed macro ??

Hybrid View

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    Time delayed macro ??

    Hello,

    Does anyone know if it is possible to effectively pause a macro mid flow??

    For example, I need the macro to do something, wait 2-3 seconds then continue doing something else??

    Is there a WAIT function? Or something similar?

    Thanks in advance for you help.

  2. #2
    Registered User
    Join Date
    07-04-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Time delayed macro ??

    Application.Wait (Now + TimeSerial(0, 0, 4))
    Try putting this in your code at the time you want it to pause. The (0,0,4) represents (Hours, Minutes, Seconds).

    If I helped, please click the * in the bottom left hand corner!

  3. #3
    Registered User
    Join Date
    05-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Time delayed macro ??

    Awesome!

    Thanks so much!

  4. #4
    Registered User
    Join Date
    07-04-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Time delayed macro ??

    You're welcome - only trying to give back to the community that's helped my VBA understanding no end!

+ 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