none
Execute code at the start and end of an Outlook appointment RRS feed

  • Question

  • Is there any event in VSTO that I can register for that will be fired at the start / end of every appointment in a user's Outlook calendar? Is there some other way of handling this other than parsing all appointments in the calendar folder and then creating my own event engine based off the items found there?

    Thanks.

     - dan

    Tuesday, July 28, 2015 9:09 PM

Answers

  • Hello,

    The Outlook object model (nor VSTO) doesn't provide any event for that.

    If the ReminderSet property of the AppointmentItem class is to true which means a reminder has been set for this item you may handle the BeforeReminderShow and ReminderFire events of the Reminders class.

    Public WithEvents objReminders As Outlook.Reminders 
     
    Sub Initialize_handler()  
     Set objReminders = Application.Reminders  
    End Sub 
     
    Private Sub objReminders_ReminderFire(ByVal ReminderObject As Reminder)  
     'Opens the item when a reminder executes  
     ReminderObject.Item.Display  
    End Sub 

    • Marked as answer by L.HlModerator Thursday, August 6, 2015 8:35 AM
    Wednesday, July 29, 2015 9:31 AM

All replies

  • Hello,

    The Outlook object model (nor VSTO) doesn't provide any event for that.

    If the ReminderSet property of the AppointmentItem class is to true which means a reminder has been set for this item you may handle the BeforeReminderShow and ReminderFire events of the Reminders class.

    Public WithEvents objReminders As Outlook.Reminders 
     
    Sub Initialize_handler()  
     Set objReminders = Application.Reminders  
    End Sub 
     
    Private Sub objReminders_ReminderFire(ByVal ReminderObject As Reminder)  
     'Opens the item when a reminder executes  
     ReminderObject.Item.Display  
    End Sub 

    • Marked as answer by L.HlModerator Thursday, August 6, 2015 8:35 AM
    Wednesday, July 29, 2015 9:31 AM
  • That is as I suspected. Thank you for taking the time to respond.

     - dan

    Wednesday, July 29, 2015 12:02 PM