WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Unavailable mailbox

 
   Home -> Office -> Programming VBA RSS
Next:  Rules as VBA  
Author Message
Andrey_R

External


Since: Apr 01, 2008
Posts: 13



(Msg. 1) Posted: Mon Sep 01, 2008 2:54 am
Post subject: Unavailable mailbox
Archived from groups: microsoft>public>outlook>program_vba (more info?)

My addins (VB6, 2003 office) crash, when I search in unavailable mailbox.
What may I know, that the mailbox is unavailable for me?
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2899



(Msg. 2) Posted: Mon Sep 01, 2008 9:47 am
Post subject: Re: Unavailable mailbox [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Andrey_R" <AndreyR DeleteThis @discussions.microsoft.com> wrote in message
news:FDBE48D4-1937-4866-892A-AC9DCDE6A0CA@microsoft.com...
> My addins (VB6, 2003 office) crash, when I search in unavailable mailbox.
> What may I know, that the mailbox is unavailable for me?
Back to top
Login to vote
Andrey_R

External


Since: Apr 01, 2008
Posts: 13



(Msg. 3) Posted: Tue Sep 02, 2008 4:21 am
Post subject: Re: Unavailable mailbox [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2899



(Msg. 4) Posted: Tue Sep 02, 2008 8:56 am
Post subject: Re: Unavailable mailbox [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Andrey_R" <AndreyR DeleteThis @discussions.microsoft.com> wrote in message
news:35CA9C4D-89F3-400A-AB7E-BAA8E54E1C84@microsoft.com...
> 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.
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET