Time Pop-Up after every 10 min

ikhan123

Board Regular
Joined
Mar 20, 2013
Messages
89
Hello Everyone, I need your help to create a pop-up in excel which will appear after every 10 min and 10 min should be variable (like any cell value where I’ll mention any time).  Even if I am working on different application, excel should pop-up . Time should start on my click and it should reset when I click on OK button and then again start on my click.

Thanks a lot forum in advance for helping me with this.


Regards,
ikhan123​
 
Last edited:

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hello Pleeseemalime,

How to use that code in excel..?

Sorry i not familiar with vba and all please guide me how to paste it and how to run this coding.

Any instruction or help or guidence on this..?
 
Last edited:
Upvote 0
Here.
Place this in a regular module;
Code:
Public RunWhen As Double
Public Const cRunIntervalSeconds = 10 ' <------- This number represents 10 seconds. Change to 600 for 10 minutes
Public Const cRunWhat = "Timer"  ' the name of the procedure to run
 
 Sub StartTimer()
    RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
    Application.OnTime EarliestTime:=RunWhen, Procedure:=cRunWhat, _
        Schedule:=True
End Sub
 Sub Timer()
   
    MsgBox "10 seconds has elapsed", , "Time is up"   ' Change 10 seconds to whatever you want that matches the time set in line 2
    
    StartTimer  ' Reschedules/Resets the procedure to run again and again
End Sub
 
Last edited:
Upvote 0
Excellent.!!!

i got what i want...

Thank you very much i really appreciated.

can i ask you one little question???

To which procedure ("StartTimer" & "Timer") i need to assign macro [asking about button]????

Regards:beerchug:
ikhan123
 
Upvote 0

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

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