excel怎么设置报警预警功能???百度都是天数的,我是14:00需要出发,12:00就提示我,

2025-06-26 17:12:45
推荐回答(1个)
回答1:

Sub auto_open()  
    Application.OnTime TimeValue("12:00:00"), "tx"   '12:00提示一次
    Application.OnTime TimeValue("14:00:00"), "tx"  '14:00再提示一次
End Sub
Sub tx()  
    msg = MsgBox("出发", vbInformation, "提示")   
End Sub

这样试试