General information
Category:
COM/DCOM and OLE Automation
Title:
No access to somebody's mailbox
#DEFINE olFolderInbox 6
When another user gives you NO access to his mailbox and I try to go to his mailbox, how can I intercept the error i get (OLE IDispatch exception code 4096 from Microsoft Outlook). I use the following code:
oOutlook = CREATEOBJECT("Outlook.Application")
oNameSpace = oOutlook.GetNameSpace("MAPI")
oUser = oNameSpace.CreateRecipient("MICHAEL")
oInbox = oNameSpace.GetSharedDefaultFolder(oUser,olFolderInbox)
FOR EACH oInbox IN oInbox.Items && The error occurs here
endfor
Thanks in advance
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only