VBA Sleep Doesn't Work

后端 未结 7 1342
礼貌的吻别
礼貌的吻别 2020-12-03 10:57

I know I\'m doing something wrong here. I\'m trying to use the sleep function to delay my code, but I get \"Sub or Function not defined\" error. Any tips?

7条回答
  •  臣服心动
    2020-12-03 11:35

    Application.Wait DateAdd("m", 10, Now) ' Wait for 10 Minutes
     Application.Wait DateAdd("s", 10, Now) ' wait for 10 seconds
    

提交回复
热议问题