Outlook 2013 - Daily Reminder with Yes / No Message Box, Record Response

acombest

Board Regular
Joined
May 8, 2017
Messages
136
I have some experience with VBA but I am new to applying it to outlook.
I am curious how I would go about having a daily reminder that also pop up a message box with a yes, no response and then record that response on a excel document.

I am not entirely sure about what sub I should be using

Private Sub Application_Reminder(ByVal Item As Object)
End Sub

If anyone could give me an example or point me in the right direction about how to approach this I would be greatly appreciative.
Thanks,
-AJ
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Yes, I think Application_Reminder (in the ThisOutlookSession module within the Outlook VBA editor) is the correct routine to handle reminders. A basic routine would be something like this:

Code:
Private Sub Application_Reminder(ByVal Item As Object)

    Dim outAppointment As Outlook.AppointmentItem
    Dim response As VbMsgBoxResult   
    
    If TypeOf Item Is Outlook.AppointmentItem Then
        Set outAppointment = Item
        response = MsgBox("Click response for reminder " & outAppointment.Body, vbYesNo)
    End If
    
End Sub
As you can see, it checks whether the Item which triggered the Application_Reminder event handler is an AppointmentItem (I don't know which other type of Item might trigger it) and then displays a message box asking for a Yes or No response.

The routine would then write the response to an Excel workbook - there should be example code on this forum which opens, writes to and saves an Excel workbook from Outlook.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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