timer定时10000毫秒
Private Sub Timer1_Timer()
Dim LastDate As Date
Dim CurDate As Date
LastDate = CDate(GetSetting("Test","timer","LastDate",date - 1))
CurDate = date
If left(time,5)= "17:40" Then
If CurDate > LastDate Then
msgbox"开始自动工作"
SaveSetting "Test", "timer","LastDate", CStr(CurDate)
End If
End If
End Sub