![]() |
Application.Reminder Event
Hi, just a quick one....
If I hook into this event, will my code completely replace the default reminder action (displaying that dialog box), or will the dialog box appear after my code has completed? If the latter, any way to stop the dialog appearing? Cheers Stu |
Application.Reminder Event
Application.Reminder is just an event that fires when a reminder comes due.
It has nothing to do with the reminders window and you can't cancel that from that event. You can access the Application.Reminders collection and handle the Reminders.BeforeReminderShow() event, which has a Cancel argument that if set to true will cancel display of the reminders window (and prevent the reminder from firing so that Application.Reminder won't fire in that case. The ReminderFire() event passes the Reminder object that fires the event, but that happens after BeforeReminderShow(), so if you cancel the reminder there you wouldn't get ReminderFire(). BeforeReminderShow() doesn't pass you the actual reminder that would fire. For that you'd need to iterate the Reminders collection and see which reminder would be firing. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Stuart Parker" wrote in message ... Hi, just a quick one.... If I hook into this event, will my code completely replace the default reminder action (displaying that dialog box), or will the dialog box appear after my code has completed? If the latter, any way to stop the dialog appearing? Cheers Stu |
Application.Reminder Event
Cheers Ken.
Here's some background as to why I asked the question.... We use Richmond ServiceDesk, which can receive service requests via email, and log them in the system. We have a number of tasks which we perform for our managed clients on a recurring basis. We would like service requests to be logged in Richmond whenever one of these tasks is due. The idea being toyed with is this: Install Outlook on our monitoring workstation, which is on 24/7. Keep Outlook running. Enter these tasks into a calendar and set recurrence and reminders on those events. When those events are due, outlook will fire a reminder. When a reminder is triggered, invoke some custom code which interrogates the item which the reminder is for. Create a suitably formatted email message, and fire it off to the ServiceDesk email address. Ideally, the standard outlook reminder dialog will never be shown. Stu "Ken Slovak - [MVP - Outlook]" wrote in message ... Application.Reminder is just an event that fires when a reminder comes due. It has nothing to do with the reminders window and you can't cancel that from that event. You can access the Application.Reminders collection and handle the Reminders.BeforeReminderShow() event, which has a Cancel argument that if set to true will cancel display of the reminders window (and prevent the reminder from firing so that Application.Reminder won't fire in that case. The ReminderFire() event passes the Reminder object that fires the event, but that happens after BeforeReminderShow(), so if you cancel the reminder there you wouldn't get ReminderFire(). BeforeReminderShow() doesn't pass you the actual reminder that would fire. For that you'd need to iterate the Reminders collection and see which reminder would be firing. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Stuart Parker" wrote in message ... Hi, just a quick one.... If I hook into this event, will my code completely replace the default reminder action (displaying that dialog box), or will the dialog box appear after my code has completed? If the latter, any way to stop the dialog appearing? Cheers Stu |
All times are GMT +1. The time now is 12:28 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com