NameSpace.GetFolderFromID (Outlook)
Returns a Folder object identified by the specified entry ID (if valid).
This method is used for ease of transition between MAPI and OLE/Messaging applications and Microsoft Outlook.
GetFolderFromID (EntryIDFolder, EntryIDStore)
Sub GetWithID()
Dim myFolder As Outlook.Folder
Dim myEntryID As String
Dim myStoreID As String
Dim myNewFolder As Outlook.Folder
Set myFolder = Application.Session.GetDefaultFolder (olFolderTasks)
myEntryID = myFolder.EntryID
myStoreID = myFolder.StoreID
Set myNewFolder = Application.Session.GetFolderFromID (myEntryID, myStoreID)
myNewFolder.Display
End Sub
Arguments
The following argument is required
EntryIDFolder (String) - The EntryID of the folder.
Optional arguments
The following argument is optional
EntryIDStore (String) - The StoreID for the folder.