Solved

Read folder outside personal folder

Posted on 2014-10-20
4
117 Views
Last Modified: 2014-10-20
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
0
Comment
Question by:rrhandle8
  • 2
  • 2
4 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 40392878
click on the white arrow in front of the account name to expand it
0
 

Author Comment

by:rrhandle8
ID: 40392902
Read through it using a VBA script.
0
 
LVL 37

Accepted Solution

by:
Neil Russell earned 500 total points
ID: 40392931
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
 

Author Comment

by:rrhandle8
ID: 40392994
Neilsr,
You got it.  I was missing the last line.
Thanks!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now