To catch the delete event of outlook contact

K

Ken Slovak - [MVP - Outlook]

What version of Outlook?

Deleted from where? From a folder or in an open item?

Please provide all relevant information when you post a question.
 
P

Puneet

Outlook 2003 version.

Infact i am making an addin for outlook 2003 and 2007 version.
I want to catch the delete event fired when i delete an contact from the folder.
 
K

Ken Slovak - [MVP - Outlook]

There is a MAPIFolder.Items.Remove event, but that fires only after the item
has been deleted and doesn't provide a reference to which item was deleted.
You can then handle the Items.ItemAdd event on the Deleted Items folder but
that won't fire if the user hard deletes the item (Shift+Delete) or if 16 or
more items are deleted at one time. Item.Remove won't fire either if 16 or
more items are deleted at once.

That's it for Outlook 2003.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top