View Single Post
  #4  
Old July 4th 08, 02:40 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to detect that an AppointmentItem is a birthday?

Such items will be all-day events with "Birthday" or "Anniversary" in the
Subject property. If you need more confirmation than that, you can extract
the person's name from the Subject, get their contact record and compare the
birthday value for the contact with the Start date for the appointment.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Lincoln Ramsay" wrote:

Hello,

I've got code (not VBA but using the object model) to synchronize
appointments and contacts from Outlook to an external source. There is a
problem though because Outlook shows contact birthdays as calendar events. I
would like to detect and suppress these calendar events because the remote
system also has this logic and it leads to multiple calendar events existing
for each birthday.

I've looked at the docs but I can't see how I might detect that an
AppointmentItem is a birthday. Can this be done?

--
Link



Ads