Read folder outside personal folder

I can easily read through the folders in my Personal folder, but do not know how to read through the folders in the mail account circled in red below. Can it be done?

gmail.png
rrhandle8Asked:
Who is Participating?
 
Neil RussellConnect With a Mentor Technical Development LeadCommented:
Ah well your question neither mentions VBA nor is it in any category that refers to VBA, So i answered what was asked.

What you want to do is something along the lines of...

Dim objNS As Outlook.NameSpace
Dim objFolder As Outlook.MAPIFolder
Set objNS = GetNamespace("MAPI")
Set objFolder = objNS.Folders("Robin.Handler@gmail.com")
Set objFolder = objFolder.Folders("Inbox")

Example code expanded from.... http://stackoverflow.com/questions/9076634/get-reference-to-additional-inbox
0
 
Neil RussellTechnical Development LeadCommented:
click on the white arrow in front of the account name to expand it
0
 
rrhandle8Author Commented:
Read through it using a VBA script.
0
 
rrhandle8Author Commented:
Neilsr,
You got it.  I was missing the last line.
Thanks!
0
All Courses

From novice to tech pro — start learning today.