’设置计时器,并在每天15点到15点03分之间运行计时器。
Sub APPLICATION_VBAStart()
Call Application.SetTimer(1,1000*120) ‘板块整理
End Sub
Sub APPLICATION_Timer(ID)
if ID=1 and Cdate(Time)>=Cdate("15:00") and Cdate(Time)<=Cdate("15:03") then
call 公式
Application.msgout Cdate(Time) & ":盘后板块整理"
end if
End Sub