Deleting an occurence of a recurring appointment without prompt

G

GillesC

I'm trying to delete one occurence of a recurring appointment from a com addin:

Dim oRecur As Outlook.RecurrencePattern
Dim OddAppt As Outlook.AppointmentItem

Set oRecur = myAppointment.GetRecurrencePattern
Set OddAppt = oRecur.GetOccurrence(myAppointment.start)
OddAppt.Delete

It works. But outlook prompts the user to confirm wheter he wants to delete
this occurence or the series.
I searched for an equivalent of Excel's "Application.DisplayAlerts = False"
without success.
Is there a way to bypass this question?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top