I made a few tests yesterday. A colleague helped me : we could not make this code to work. So, he added an event handler on application. We could then check if the object linked to the open event was a appointment.
Unfortunately, when just read the messageClass of the appointment, Outlook...
Thanks a lot for your answer ! I thought about open event. But, I'm a newbie with VBA. I supposed it may exist but I could not find any simple sample.
I found this :
Private WithEvents appt As Outlook.AppointmentItem
Private Sub appt_Open(Cancel As Boolean)
MsgBox "Open Event"
I created a custom form to display user defined fields in appointment items.
It works fine. This new form is defined as default appointment class (IPM.appointment.myForm).
When I add an appointment, the window is displayed with this form, even when somebody adds an appointment thru my...