Tag: 倒计时

倒计时Excel VBA – 代码崩溃的Excel

有人可以提供一个洞察,为什么这崩溃了我的优秀,我似乎无法工作。 我试图学习VBA,需要一些build议。 sub timer() dim second second = 1.15740740740741e-05 'this is the amount excel counts as a second line1: application.wait "00:00:01" Range("a1").value = Range("a1").value – second if not range("D2").value = 0 then Goto line1 else Msgbox("Countdown ended") End if end sub