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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top