ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA: Pausing Code Execution (https://www.excelbanter.com/excel-programming/276952-vba-pausing-code-execution.html)

Michael Loganov

VBA: Pausing Code Execution
 
Hi,

how can I pause a code execution for, let's say 5 seconds?

Thanks in advance
Mike



Chip Pearson

Pausing Code Execution
 
Mike,

Try something like the following:

Application.Wait Time:=Now + TimeSerial(0, 0, 5)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com



"Michael Loganov" wrote in message
...
Hi,

how can I pause a code execution for, let's say 5 seconds?

Thanks in advance
Mike





Mike L[_3_]

Pausing Code Execution
 
Thank you

Mike

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT +1. The time now is 05:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com