想一个excel vba 于某时间自动停止,怎样写

2025-02-22 14:31:13
推荐回答(2个)
回答1:

可以用test启动定时
sub test()
Application.OnTime Now + TimeValue("00:00:01"), "test"
end sub
用Application.OnTime Now + TimeValue("00:00:01"), "test",,false停止定时

回答2:

有个 ontime 方法