📜  vba excel 创建事件日志 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:56.756000             🧑  作者: Mango

代码示例10
Dim NextRefresh as Date

Sub RefreshSheet()
ThisWorkbook.Worksheets("Sheet1").Calculate
NextRefresh = Now + TimeValue("00:05:00")
Application.OnTime NextRefresh, "RefreshSheet"
End Sub

Sub StopRefresh()
On Error Resume Next
Application.OnTime NextRefresh, "RefreshSheet", , False
End Sub