Synchronizing my Outlook calendar with my customized web calendar

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Hi Guys, I have finally managed to get Stephen Toub code "Custom Calendar
Providers for Outlook 2003" to work but I have one doubt, which I need your
help for. I need to be able delete an event from Outlook calendar when an
event from my custom calendar is deleted. Does anyone know how to do that.
Please this is very urgent…

If anyone knows how to do this then please do let me know…

I’ll be looking forward for your replies….

Thanks in advance,

Sam
 
You can monitor the ItemRemove events for an Items collection retrieved from
a specific MAPIFolder object pertaining to the folder whose delete events
you want to monitor.

This sample from the Outlook 2003 VBA Help file illustrates how something
similar can be accomplished with the Inbox:

Dim myOlApp As New Outlook.Application
Public WithEvents myOlItems As Outlook.Items

Public Sub Initialize_handler()
Set myOlItems =
myOlApp.GetNamespace("MAPI").GetDefaultFolder(olFolderContacts).Items
End Sub

Private Sub myOlItems_ItemRemove()
Dim myOlMItem As Outlook.MailItem
If MsgBox("Do you want to notify the Sales Team?", vbYesNo + vbQuestion)
= vbYes Then
Set myOlMItem = myOlApp.CreateItem(olMailItem)
myOlMItem.To = "Sales Team"
myOlMItem.Subject = "Remove Contact"
myOlMItem.Body = "Remove the following contact from your list:"
myOlMItem.Display
End If
End Sub


--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
-> Try Picture Attachments Wizard For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault
 
Back
Top