在 VBA 中是否有等效于 Thread.Sleep() 的 [英] Is there an equivalent to Thread.Sleep() in VBA
本文介绍了在 VBA 中是否有等效于 Thread.Sleep() 的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有与 Access VBA 中的 Thread.Sleep()
等效的代码?
Is there an equivalent to Thread.Sleep()
in Access VBA?
推荐答案
Declare Sub Sleep Lib "kernel32" Alias "Sleep" _
(ByVal dwMilliseconds As Long)
使用以下语法调用睡眠函数:
Use the following syntax to call the Sleep function:
Sub Sleep()
Sleep 1000 'Implements a 1 second delay
End Sub
这篇关于在 VBA 中是否有等效于 Thread.Sleep() 的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文