Best way to check if an appointment is deleted?

  • Thread starter Thread starter Dieter Verlaeckt
  • Start date Start date
D

Dieter Verlaeckt

Hi,

What is the best (most efficient) way to programmatically check if an
appointment is deleted (moved to the "deleted items" folder) or not?

TIA
Dieter
 
If you know the Subject of the appointment, you could use code as per
below. If objItem is nothing, then it hasn't been deleted.
Dim objDelFolder As Outlook.MAPIFolder, objNS As Outlook.NameSpace
Dim objItem As Object

Set objNS = Application.GetNamespace("MAPI")
Set objDelFolder = objNS.GetDefaultFolder(olFolderDeletedItems)
Set objItem = objDelFolder.Items("Staff Meeting")

Eric Legault - B.A, MCP, MCSD, Outlook MVP
 
Back
Top