WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Delete Event

 
   Home -> Office -> Programming VBA RSS
Next:  changing catagories  
Author Message
eddymaue

External


Since: Jul 24, 2009
Posts: 2



(Msg. 1) Posted: Fri Jul 24, 2009 8:10 pm
Post subject: Delete Event
Archived from groups: microsoft>public>outlook>program_vba (more info?)

Allo

it is possible to intercept events
Delete in Contact, Task and Calendar before the item is deleted

Tanks

@+ Eddy
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2977



(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.

--
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
>
>
Back to top
Login to vote
eddymaue

External


Since: Jul 24, 2009
Posts: 2



(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
>>
>>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Programming VBA 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
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support