The GetInfoStore method returns an InfoStore object that can be used to navigate through both public folders and the user's personal folders.
Set objInfoStore = objSession.GetInfoStore(storeID)
The GetInfoStore method allows you to obtain any message store for which you know the ID property. Within the message store you can then obtain any child Folder object for which you know the ID property.
This code fragment uses the GetInfoStore method to obtain a specific message store:
' from the function Session_GetInfoStore
' requires a global variable that contains the InfoStore ID
Dim strInfoStoreID as String ' ID as hex string
Dim objInfoStore As InfoStore
If strInfoStoreID = "" Then
MsgBox ("Must first set string variable to InfoStore ID")
Exit Function
End If
Set objInfoStore = objSession.GetInfoStore( _
storeID:=strInfoStoreID)
' error handling ...
MsgBox "InfoStore set to " & objInfoStore.Name