sivaprakasam
Member
Hi,
I am working on Excel 2013,
I need the automatic macro run if system time every 10 minutes between start time to end time VBA excel
>>> use code - tags <<<
eg:
Excel Open
start time is 9:30 AM
end time is 5:00 PM
show the "msgbox" every 10 minutes
Kindly help me, thanks in advance
I am working on Excel 2013,
I need the automatic macro run if system time every 10 minutes between start time to end time VBA excel
>>> use code - tags <<<
Code:
VBA Code
'In Workbook events:
Private Sub Workbook_Open()
Call Update
End Sub
'In a Module:
Dim RunTimer As Date
Sub Update()
RunTimer = Now + TimeValue("00:00:20")
Application.OnTime RunTimer, "Update"
'Do Something Your Code
MsgBox "Data Update.", vbInformation
End Sub
eg:
Excel Open
start time is 9:30 AM
end time is 5:00 PM
show the "msgbox" every 10 minutes
Kindly help me, thanks in advance
Last edited by a moderator: