Excel VBA macrosHack 41
    excel vba
    MsgBox
    popup reminder
    workbook open

    Create a Timed Pop-Up Reminder in Excel That Fires at a Set Time

    Excel Hack #41

    10 views
    1 min read
    2019-10-20
    Create a Timed Pop-Up Reminder in Excel That Fires at a Set Time

    This is a useful code for creating a reminder that you want to pop up at a specific time in Excel. This reminder will show as long as the Excel workbook is open, even if it is not the active window at...

    This is a useful code for creating a reminder that you want to pop up at a specific time in Excel. This reminder will show as long as the Excel workbook is open, even if it is not the active window at the time of the reminder.

    Let's say you want a message box to pop up at 3pm on a daily basis, reminding you to send out a report.

    Place the following code in the ThisWorkbook sheet code area (access this from Developer >> VBA Editor) of your workbook:

    Private Sub Workbook_Open()

    Application.OnTime TimeValue (15:00:00"), "PopupRemind"

    End Sub

    Then Insert a new module, and place the following code (the text in the Msgbox can be customized as you wish):

    Sub PopupRemind()

    If MsgBox("It's time to work! Send the report out to Team Manager?", _

    vbOKCancel + vbQuestion, "Reminder") = vbOK Then

    MsgBox "Sending report..."

    Else

    MsgBox "Reminder dismissed."

    End If

    End Sub

    Frequently Asked Questions