Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   GetItemFromID (http://www.outlookbanter.com/outlook-vba/47020-getitemfromid.html)

werner meyer April 27th 07 12:27 AM

GetItemFromID
 
hello,
i locate the calender item with
outlook.GetNamespace("MAPI").GetItemFromID("123")

this works fine
but how can i check
is this item deleted or not?

Dmitry Streblechenko April 27th 07 12:49 AM

GetItemFromID
 
Do you mean "deleted" as in "resides in the Deleted Items folder"?

set Namespace = outlook.GetNamespace("MAPI")
set DelItems = Namespace.GetDefaultFolder(olFolderDeletedItems)
set Item = Namespace.GetItemFromID("123")
BoolDeleted = (Item.Parent.EntryID = DelItems.EntryID)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"werner meyer" wrote in message
...
hello,
i locate the calender item with
outlook.GetNamespace("MAPI").GetItemFromID("123")

this works fine
but how can i check
is this item deleted or not?





All times are GMT +1. The time now is 07:02 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com