how to create an excel popup on timer?

nadavrock

New Member
Joined
May 15, 2019
Messages
24
lets say i have a task. i put the start time in excel. i want excel to popup alert me when time is up. how do i do that?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
In Excel, Excel would have to be running first. You could build a VBA Event. There are some vulnerabilities to this running correctly if you run multiple sessions.
In Outlook(Desktop) may be better or similar. Though there is a move to the Online email services.
The best Reminder methods is the (probably) least known. Do a search on your Windows7 machine for "Task Scheduler". In Windows10, the Alarm Clock is better.
 
Upvote 0
.
Here is a simple timer that pops up a Message Box at the end of the time you set.
Presently, the time is set to 10 seconds. You can edit that to any length time you require.

Code:
Sub StartTimer()
Static SchedSave
    If SchedSave <> 0 Then
    Application.OnTime SchedSave, "TimeOver", , False
    End If
    SchedSave = Now + TimeValue("00:00:10")     '<--- Ten seconds .. adjust time as required
    Application.OnTime SchedSave, "TimeOver", , True
End Sub


Sub TimeOver()


MsgBox "Your time is up !"


End Sub

Paste the above code into a regular module. Paste a button on the sheet and attach it to the "StartTimer" macro.
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,969
Members
449,059
Latest member
oculus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top