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
 

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

Back
Top