’设置计时器,并在每天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 lianghua5Fzhongwuzhengli
Application.msgout Cdate(Time) & ":量化盘后整理"
end if
End Sub