A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

GetItemFromID



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 27th 07, 12:27 AM posted to microsoft.public.outlook.program_vba
werner meyer
external usenet poster
 
Posts: 1
Default 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?
Ads
  #2  
Old April 27th 07, 12:49 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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?



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2007 + GetItemFromID with specified folder Marcin Junger Add-ins for Outlook 2 March 17th 07 07:28 PM
Outlook 2007 + GetItemFromID with specified folder Marcin Junger Outlook and VBA 1 March 14th 07 07:19 AM
NameSpace.GetItemFromID() threw an exception OctopusThu Add-ins for Outlook 2 December 15th 06 07:40 AM
trouble with GetItemFromID / GetMessage Johannes Franke Outlook - General Queries 2 June 9th 06 08:50 AM
GetItemFromID method on a public folder in the namespace Robert Squire Outlook and VBA 1 February 24th 06 02:31 PM


All times are GMT +1. The time now is 07:06 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-2025 Outlook Banter.
The comments are property of their posters.