Unavailable mailbox

A

Andrey_R

My addins (VB6, 2003 office) crash, when I search in unavailable mailbox.
What may I know, that the mailbox is unavailable for me?
 
K

Ken Slovak - [MVP - Outlook]

Show the code you're using and state your Outlook version. There isn't
enough information to go on from what you provided.
 
A

Andrey_R

Version - Microsoft Office Outlook SP3
Code:
For i = 1 To anApplication.Session.Folders.count
Set objDummy = anApplication.CreateItem(olMailItem)
Set objRecip = objDummy.Recipients.Add(strName)
objRecip.Resolve
If objRecip.Resolve = True Then
On Error Resume Next
Set objFolder = objNS.GetSharedDefaultFolder(objRecip,
olFolderInbox)
On Error GoTo 0
End If
Next
When I am trying to get unavailable address mailbox for me, this plugin
crash.
 
K

Ken Slovak - [MVP - Outlook]

Where does the crash occur? Are you testing for (objFolder Is Nothing)
before you try to use the folder?
 
Top