如何在一個模塊(兩個子行程)中間歇性運行兩個宏,并且我們有一個延遲(等待時間例如 700 秒)來請求用戶將游標的位置更改到所需的位置,然后第二個宏將基于新位置運行游標的
uj5u.com熱心網友回復:
Sub Macro1()
'code
msgbox "You have 10 seconds after you close this to move your mouse."
dim WhenToRun
whentorun = now timeserial(0,0,10)
do while now < whentorun
doevents
loop
call Macro2
End Sub
Sub Macro2()
'code
End Sub
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/521982.html
標籤:vbams-word潜伏
