Apply a pause in an Excel VBA macro

Solved
ch'duj Posted messages 31 Status Member -  
 lerif25 -
Hello,

I'm looking for a way to pause the execution of my macro in VBA Excel for a few seconds, and to do this invisibly for the user.
If anyone has a snippet of code, that would be great!!!

I'm using VBA Excel 2007

Thank you

Configuration: Windows XP / Internet Explorer 7.0

4 answers

  1. Woody
     
    I had the same question, and I found it even simpler:

    Sub Wait() ' Wait 5 seconds Application.Wait Time + TimeSerial(0, 0, 5) ' Continue after the pause End Sub


    replace the "5" with the desired number of seconds
    66
    1. lerif25
       
      Thank you very much!
      0