Discussion:
Is there a way to prevent an appt. Item from being deleted based on subject
(too old to reply)
Matt
2009-07-10 18:36:14 UTC
Permalink
Hello,
I am trying to prevent an appointment item from being deleted from
an Outlook 2003 calendary based on the value in the subject line using
VBA.
Is that something that can be done?
Thanks,
Matt
Ken Slovak - [MVP - Outlook]
2009-07-13 12:55:56 UTC
Permalink
There's no cancel event for a deletion, and every user owns their own
mailbox or PST file, so you'd need to write code to look at every item that
was added to the Deleted Items folder and if it's an appointment with that
subject your code would move it back to the calendar folder. That would not
prevent a user from using Shift+Delete to hard delete an item (bypassing
Deleted Items), so it wouldn't be fool proof.

Why exactly are you wanting this? There rarely are code solutions to user
behavior problems, user education usually works much better.
--
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
Post by Matt
Hello,
I am trying to prevent an appointment item from being deleted from
an Outlook 2003 calendary based on the value in the subject line using
VBA.
Is that something that can be done?
Thanks,
Matt
Loading...