Sub 結束視窗()
Application.OnTime EarliestTime:=TimeValue("00:00:10"), _
Procedure:="資料剝析", Schedule:=False
'Workbooks("加工剩餘數.xlsm").Close SaveChanges:=False
End Sub
Sub 更新()
If Time <= TimeValue("19:00:00") Then
uTime= Now + TimeValue("00:05:00")
Application.OnTime uTime, "剩餘數計算"
End If
End Sub
Sub 結束視窗()
on error resume next
Application.OnTime uTime, "剩餘數計算", Schedule:=False
on error goto 0
Workbooks("加工剩餘數.xlsm").Close SaveChanges:=False
End Sub作者: annie.l 時間: 2021-1-29 14:53
Sub 結束視窗()
on error resume next
Application.OnTime uTime, "剩餘數計算", Schedule:=False
on error goto 0
Workbooks("加工剩餘數.xlsm").Close SaveChanges:=False
End Sub作者: 准提部林 時間: 2021-1-29 16:24