Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Read folder outside personal folder

Posted on 2014-10-20
4
Medium Priority
?
126 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 2000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

824 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