Use Namespace.GetItemFromID
. Please note that the second parameter (store identifier) ββis optional. You can omit it if the store in question has already been affected by Outlook in the current session. If not, Outlook will raise the "unknown id id" exception. If an identifier for the entry in the store is specified, Outlook will open it first, and the store provider will have the opportunity to register their login identifiers in the MAPI system.
set App = CreateObject("Outlook.Application") set NS = App.GetNamespace("MAPI") NS.Logon set Msg = NS.GetItemFromID(EntryID) MsgBox Msg.Subject
source share