Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pausing a macro... 1

Status
Not open for further replies.

Rjc8513

Technical User
Joined
Feb 12, 2001
Messages
140
Location
US
I have a macro which uses a counter and displays the counter result as part of a message in the StatusBar (Processing 15 of 300 records...).

When the total number of records is small, the procedure runs so quickly that the message cannot be read.

Is there a way to add a delay or a pause to the code to slow down the procedure so the message can be read?

Thanks.

Richard...
 
Code:
Dim dteStart as date

dteStart = Now   ' not the start time(date-time)
.....Processing
Do While((Now - dteStart) / 86400 < 5) ' 86400 secs per day
Loop
 
I always suspected over the years that certain programmers did this . . . . . . . . . LOL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top