返回列表 上一主題 發帖

[發問] =NOW() 不會自動更新當下時間

DEAR SIR
  於 Private Sub Workbook_Open() 加註如下

Private Sub Workbook_Open()
  Sheet1.Range("C4") = Now
  Application.OnTime Now + TimeValue("00:00:01"), "AA"
End Sub
羅

TOP

Private Sub Workbook_Open()
  AA
End Sub

Sub AA()
  Sheet1.Range("C4") = Now
  Application.OnTime Now + TimeValue("00:00:01"), "AA"
End Sub
羅

TOP

正常
把01秒執行一次改30秒執行一次.就不會如此刺眼拉

Sub AA()
  Sheet1.Range("C4") = Now
  Application.OnTime Now + TimeValue("00:00:30"), "AA"
End Sub
羅

TOP

        靜思自在 : 人生不一定球球是好球,但是有歷練的強打者,隨時都可以揮棒。
返回列表 上一主題