返回列表 上一主題 發帖

[發問] VBA 表單中 如何宣告SLEEP函式??

[發問] VBA 表單中 如何宣告SLEEP函式??

請問各位大大,我想在自製表單中能夠使用SLEEP函式
語法如下:
#If VBA6 Then
Declare Sub Sleep Lib "kernel32" (Optional ByVal dwMilliseconds As Long = 1000) 'For 32 Bit Systems
#Else
Declare PtrSafe Sub Sleep Lib "kernel32" (Optional ByVal dwMilliseconds As Long = 1000) 'For 64 Bit Systems
#End If

但當我宣告後要執行,他寫


請問我該如何除錯呢??

add  Private  

Private Declare Sub .........

TOP

回復 2# jackyq

謝謝你,我發現錯誤了!!

TOP

        靜思自在 : 有時當思無時苦,好天要積雨來糧。
返回列表 上一主題