Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / April 2007

Tip: Looking for answers? Try searching our database.

GetItemFromID

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
werner meyer - 26 Apr 2007 23:27 GMT
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 - 26 Apr 2007 23:49 GMT
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

> hello,
> i locate the calender item with
[quoted text clipped - 3 lines]
> but how can i check
> is this item deleted or not?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.