Private Sub Worksheet_Calculate()
If Format(Now, "hh:mm:ss") = "10:03:00" Then
MsgBoxTest 0, " test 4秒自動關閉 ", "提示訊息", vbSystemModal, 0, 4000
End If
If Format(Now, "hh:mm:ss") = "10:03:02" Then '
[m21] = 1
End If
end sub
Private Sub Worksheet_Calculate()
dim ck%
If Format(Now, "hh:mm:ss") = "10:03:00" Then
ck=1
MsgBoxTest 0, " test 4秒自動關閉 ", "提示訊息", vbSystemModal, 0, 4000
End If
If ck=1 Then [m21] = 1
end sub