Unavailable mailbox

  • Thread starter Thread starter Andrey_R
  • Start date Start date
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?
 
Show the code you're using and state your Outlook version. There isn't
enough information to go on from what you provided.
 
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.
 
Where does the crash occur? Are you testing for (objFolder Is Nothing)
before you try to use the folder?
 
Back
Top