Is there an equivalent to Thread.Sleep() in VBA

后端 未结 8 1285
孤街浪徒
孤街浪徒 2020-12-01 13:38

Is there an equivalent to Thread.Sleep() in Access VBA?

8条回答
  •  误落风尘
    2020-12-01 14:05

    If you use Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long), you may get this error in an object module.

    If so, you can declare it as private:

    Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

提交回复
热议问题