I'm new to outlook vba.
I'd like to run a macro when I create a new appointment in mycalendar in Outlook 2016 32bit
I tried with
Private WithEvents appt As Outlook.AppointmentItem
Private Sub appt_Write(Cancel As Boolean)
MsgBox ("test ok")
End Sub
in the ThisOutlookSession module but nothing happens when I edit anda save a new appointment.
What I have to do?