Link to home
Start Free TrialLog in
Avatar of FlorisMK
FlorisMKFlag for Netherlands

asked on

Private appointments in Outlook VBA and AppointmentItem Object

I need to be able to change the 'Private' property of an appointment (bottom right checkbox in the Appointment form) from VBA. By getting an object reference to a private appointment in code and Watching the variable, I have determined that there doesn't seem to be a corresponding Property in the AppointmentItem object. What's up with that? Or in other words: is there a VBA approach to changing the Private setting of appointments in Outlook?
Avatar of FlorisMK
FlorisMK
Flag of Netherlands image

ASKER

Oops, found it:

If itm.Sensitivity = olPrivate Then
   itm.Sensitivity = olNormal
   itm.Save
End If
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial