A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Unavailable mailbox



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 1st 08, 10:54 AM posted to microsoft.public.outlook.program_vba
Andrey_R
external usenet poster
 
Posts: 13
Default Unavailable mailbox

My addins (VB6, 2003 office) crash, when I search in unavailable mailbox.
What may I know, that the mailbox is unavailable for me?
Ads
  #2  
Old September 1st 08, 02:47 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Unavailable mailbox

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" wrote in message
...
My addins (VB6, 2003 office) crash, when I search in unavailable mailbox.
What may I know, that the mailbox is unavailable for me?


  #3  
Old September 2nd 08, 12:21 PM posted to microsoft.public.outlook.program_vba
Andrey_R
external usenet poster
 
Posts: 13
Default Unavailable mailbox

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.

  #4  
Old September 2nd 08, 01:56 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Unavailable mailbox

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" wrote in message
...
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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
outlook Exchange unavailable abo_jna Outlook - General Queries 1 May 14th 07 01:47 PM
form becomes unavailable jon z Outlook - Using Forms 0 January 19th 07 09:20 PM
Server Unavailable Error getting to PST mackdaddy315 Outlook - General Queries 1 August 2nd 06 03:31 PM
Exchange Mailbox server prohibit from sending when reach mailbox size limit Milly Staples [MVP - Outlook] Outlook - General Queries 1 February 24th 06 06:41 PM
Add others button unavailable Cindy Outlook - Calandaring 7 January 25th 06 05:24 PM


All times are GMT +1. The time now is 10:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.