GetDefaultFolder other mailbox

  • Thread starter Thread starter stokefolk
  • Start date Start date
S

stokefolk

Hi,

I'm using Outlook 2003 in an Exchange 2003 environment. We have a group
mailbox which is used by all members of a team, and is added to their
outlook profile as an additional mailbox. I am trying to write an excel
macro to pull certain properties from every mail into a spreadsheet

So far, I've got everything working fine, as long as the Group Mailbox
is opened as the primary mailbox, with the macro determining the folder
to use by using GetDefaultFolder(olFolderInbox). However, I'd like to
get it to select "Group Mailbox\Inbox" as the folder, when Group
Mailbox is opened as an additional mailbox.

Is this possible?
 
Use GetSharedDefaultFolder instead of GetDefaultFolder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top