(Msg. 1) Posted: Sun Sep 06, 2009 9:23 am
Post subject: Select Alternate profile Archived from groups: microsoft>public>outlook>program_vba (more info?)
In my Outlook, under File - Open, I can see two Profiles.
Parent, Mark (Inbox)
Alternate, TD (Inbox)
The folders that appear only show those under Parent, Mark but if I select
the Alternate profile, I can read the Alternate inbox.
I need my VBA code to select the Alternate profile, and read that Inbox
contents. My code appears below; the Set REPRICE statement is failing. Can
I not select the Alternate Profile this way?
Set objApp = GetObject(, "Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
Set REPRICE = objNS.Folders.Item("Alternate, TD")
Set MyFolder = REPRICE.Folders.Item("Inbox")
(Msg. 2) Posted: Tue Sep 08, 2009 10:38 am
Post subject: Re: Select Alternate profile [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
What you are referring to as profiles sound like delegate mailboxes. Are you
on Exchange server, and is Alternate an Exchange mailbox? If that's the case
then you would use the NameSpace.GetSharedDefaultFolder() method to access
that Inbox.
See the Object Browser help on that method for an example of how to use it.
"Mark Parent" <MarkParent.TakeThisOut@discussions.microsoft.com> wrote in message
news:96B8980D-5690-4DB8-AFCA-DF707E5FD055@microsoft.com...
> In my Outlook, under File - Open, I can see two Profiles.
> Parent, Mark (Inbox)
> Alternate, TD (Inbox)
> The folders that appear only show those under Parent, Mark but if I select
> the Alternate profile, I can read the Alternate inbox.
>
> I need my VBA code to select the Alternate profile, and read that Inbox
> contents. My code appears below; the Set REPRICE statement is failing.
> Can
> I not select the Alternate Profile this way?
>
> Set objApp = GetObject(, "Outlook.Application")
> Set objNS = objApp.GetNamespace("MAPI")
> Set REPRICE = objNS.Folders.Item("Alternate, TD")
> Set MyFolder = REPRICE.Folders.Item("Inbox")
>
> Thanks all for your time and assistance!
>
>
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