![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
I have code (see below) that accesses the default mailbox InBox. I can't
figure out how to set to a non-default mailbox. Somehow I think I am supposed to use the Folders collection, but I can get it to work. Any suggestions? Thanks. Set olMAPI = GetObject("", "Outlook.Application").GetNamespace("MAPI") Set curInbox = olMAPI.GetDefaultFolder(olFolderInbox) |
#2
|
|||
|
|||
![]()
So I guess I am suppsoed to use GetSharedDefaultFolder, but that wants to use
CreateRecipient, but the recipient already exists. Or does it just check to see if the recipient exists? Form the outstanding Microsoft documentation, it is impossible to tell. Thanks. Any hints will be greatly appreciated. "John Lane" wrote: I have code (see below) that accesses the default mailbox InBox. I can't figure out how to set to a non-default mailbox. Somehow I think I am supposed to use the Folders collection, but I can get it to work. Any suggestions? Thanks. Set olMAPI = GetObject("", "Outlook.Application").GetNamespace("MAPI") Set curInbox = olMAPI.GetDefaultFolder(olFolderInbox) |
#3
|
|||
|
|||
![]()
You can supply any valid Recipient object. You must somehow create the
Recipient object of course. If the non-default mailbox is opened as part of the profile then you can use the Folders collection of the NameSpace object and iterate that collection until you find the mailbox you want. That won't work if the store isn't opened as part of the Outlook profile however. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "John Lane" wrote in message ... So I guess I am suppsoed to use GetSharedDefaultFolder, but that wants to use CreateRecipient, but the recipient already exists. Or does it just check to see if the recipient exists? Form the outstanding Microsoft documentation, it is impossible to tell. Thanks. Any hints will be greatly appreciated. "John Lane" wrote: I have code (see below) that accesses the default mailbox InBox. I can't figure out how to set to a non-default mailbox. Somehow I think I am supposed to use the Folders collection, but I can get it to work. Any suggestions? Thanks. Set olMAPI = GetObject("", "Outlook.Application").GetNamespace("MAPI") Set curInbox = olMAPI.GetDefaultFolder(olFolderInbox) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Enter a name using mailbox name | Kim | Outlook - Using Forms | 1 | April 7th 06 12:33 AM |
Change default mailbox | Hlewis | Outlook and VBA | 3 | March 5th 06 03:52 PM |
Exchange Mailbox server prohibit from sending when reach mailbox size limit | Milly Staples [MVP - Outlook] | Outlook - General Queries | 1 | February 24th 06 07:41 PM |
Running rules on mailbox other than the default | Brian Beck | Outlook - General Queries | 1 | February 3rd 06 10:26 PM |
Default day on default monthly calendar wrong | brad elliott | Outlook - Calandaring | 6 | February 2nd 06 01:17 AM |