![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Is there such a thing as a BeforeFolderDelete event, or OnFolderDelete,
something like that? I need a way to determine that the user is attempting to delete a folder that is critical to addin operation, and as such I want to disable this action. |
#2
|
|||
|
|||
![]()
There's a Folders.FolderRemove() event you can use but it fires after the
folder was removed and it doesn't tell you which folder was removed, just that one of the folders was removed. In Outlook 2007 there's a Folder.BeforeFolderMove event that fires before a folder location is moved or before the folder is deleted. Of course you'd have to have subscribed to that folder's events prior to the deletion. In the case of this event a deletion is indicated by the MoveTo argument being null. That event also has a Cancel argument used to cancel the move/deletion. -- 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 "Mike" wrote in message ... Is there such a thing as a BeforeFolderDelete event, or OnFolderDelete, something like that? I need a way to determine that the user is attempting to delete a folder that is critical to addin operation, and as such I want to disable this action. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Search of an event fired immediate before Quit-event | Peter Ostermann | Outlook and VBA | 4 | April 6th 07 07:46 AM |
event echo (event fires twice) vba/vb | smanky | Outlook and VBA | 0 | November 9th 06 01:16 PM |
Problem with CommandBarComboBox Change Event (Event fires only once) | M. Khalid Farooq | Add-ins for Outlook | 1 | October 19th 06 02:34 PM |
getting calendar event reminder for deleted event | [email protected] | Outlook - General Queries | 3 | September 4th 06 02:11 PM |
can a calander event to automaticaly reply during the event? How | DG at uei | Outlook - Calandaring | 1 | April 28th 06 07:45 AM |