以下代碼基於單元格值自動保存。Excel vba end autosave ontime loop
Sub AutoSaveIt()
If Sheets("BOH General").Range("A102").Value > 0 Then
ThisWorkbook.Save
Application.OnTime Now + TimeSerial(0, Sheets("BOH General").Range("A102").Value, 0), "AutoSaveIt"
End If
End Sub
我打的什麼代碼可以打破這個循環?
編輯:我試圖避免它重新打開工作簿,然後再次運行宏一旦被關閉
相關的問題,也許:http://stackoverflow.com/q/4599796/2127508 – barrowc