+ Reply to Thread
Results 1 to 4 of 4

How to create a delay in VBA macro

  1. #1
    Registered User
    Join Date
    09-23-2008
    Location
    tokyo
    Posts
    2

    How to create a delay in VBA macro

    Does anyone know how to make the macro wait a bit before going on to the next procedure ?
    I'm using another application (bloomberg excel) at the same time and it takes a little bit time to be fully updated along with vba, so it is necessary to create a pause between procedures, so that bloomberg can catch up with the progress.

    I tried applicationwait function but it didn't work, since it simply stopped the whole process. I'm just wondering if I can create something simple just like countdown or so in the statement.

    Regards

  2. #2
    Registered User
    Join Date
    09-23-2008
    Location
    London
    Posts
    11
    Hi,

    Try this:

    Please Login or Register  to view this content.
    I have some dim dark recollection that time delays are troublesome. Can't remember why though.

    cheers

    Malcolm

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello TKO321,

    In addition to macaulay's code, here is a version that yields to other processes while the macro is waiting. This timer also supports fractional portions of a second.
    Please Login or Register  to view this content.
    Calliing Example
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  4. #4
    Registered User
    Join Date
    09-23-2008
    Location
    tokyo
    Posts
    2
    Great. Thanks a lot !

+ 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. Macro Time Delay
    By phil2006 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2008, 05:26 PM
  2. Need to create a macro to insert row after a value change in a column
    By vjboaz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2008, 02:04 PM
  3. Create tabs using macro
    By Valeda in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-25-2007, 09:25 AM
  4. create hyperlink and run with macro
    By scabral79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2007, 12:24 PM
  5. How do I create a macro to run queries with worksheet data
    By jfinn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2006, 07:15 AM

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