我想在三个不同的时间段要程序执行一定的操作,应该如何?
我是用了一个timer控件,可是不行
sub Timer1_Timer()
dim starttime1 as string
dim starttime2 as string
dim starttime3 as string
starttime1=date & " 09:00:00"
starttime2=date & " 12:50:00"
starttime3=date & " 00:00:00"
if now()=startime1 or now()=startime2 or now()=startime3 then
msgbox "你好"
end if
end sub
应该怎么办?