(Msg. 2) Posted: Mon Jul 27, 2009 11:25 am
Post subject: Re: Delete Event [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
The Delete event fires after the item has been deleted. The BeforeDelete
event only fires if the item is opened and deleted from the File menu.
If you are using Outlook 2007 you can get the BeforeItemMove event and if
the target folder is null you know the item will be deleted. However, that
event is only available in Outlook 2007 or later.
"eddymaue" <eddymaue_retirer_ DeleteThis @hotmail.com> wrote in message
news:%23ZklVxLDKHA.4608@TK2MSFTNGP02.phx.gbl...
> Allo
>
> it is possible to intercept events
> Delete in Contact, Task and Calendar before the item is deleted
>
> Tanks
>
> @+ Eddy
>
>
(Msg. 3) Posted: Tue Jul 28, 2009 8:38 pm
Post subject: Re: Delete Event [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Allo Ken
Thank you very much, that's what I wanted
Public WithEvents MyContactItem As Outlook.ContactItem
Public WithEvents MyTaskItem As Outlook.TaskItem
Public WithEvents MyAppointmentItem As Outlook.AppointmentItem
et l'évennement c'est BeforeDelete()
Private Sub MyAppointmentItem_BeforeDelete(ByVal Item As Object, Cancel As Boolean)
End Sub
Private Sub MyContactItem_BeforeDelete(ByVal Item As Object, Cancel As Boolean)
End Sub
Private Sub myMailItem_BeforeDelete(ByVal Item As Object, Cancel As Boolean)
End Sub
Private Sub MyTaskItem_BeforeDelete(ByVal Item As Object, Cancel As Boolean)
End Sub
a+ Eddy Maue
Il se trouve que Ken Slovak - [MVP - Outlook] a formulé :
> The Delete event fires after the item has been deleted. The BeforeDelete
> event only fires if the item is opened and deleted from the File menu.
>
> If you are using Outlook 2007 you can get the BeforeItemMove event and if the
> target folder is null you know the item will be deleted. However, that event
> is only available in Outlook 2007 or later.
>
> --
> 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 >
>
> "eddymaue" <eddymaue_retirer_ DeleteThis @hotmail.com> wrote in message
> news:%23ZklVxLDKHA.4608@TK2MSFTNGP02.phx.gbl...
>> Allo
>>
>> it is possible to intercept events
>> Delete in Contact, Task and Calendar before the item is deleted
>>
>> Tanks
>>
>> @+ Eddy
>>
>>
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum