Timing Delays in VBA

后端 未结 12 2235
陌清茗
陌清茗 2020-11-28 13:48

I would like a 1 second delay in my code. Below is the code I am trying to make this delay. I think it polls the date and time off the operating system and waits until the

12条回答
  •  [愿得一人]
    2020-11-28 14:23

    If you are in Excel VBA you can use the following.

    Application.Wait(Now + TimeValue("0:00:01"))
    

    (The time string should look like H:MM:SS.)

提交回复
热议问题