If CheckBox2.Value = True Then Dim myTime As Date myTime = Now() For I = 0 To 360 '6時間 '1分ごと Application.OnTime myTime + TimeValue("00:00:08") * I, "Macro12" Next End If
If CheckBox3.Value = True Then Dim myTime1 As Date myTime1 = Now() For I = 0 To 360 '6時間 '1分ごと Application.OnTime myTime1 + TimeValue("00:00:03") * I, "Macro12" Next End If End Sub