Determine exact location of Outlook 2010 emails found in search

I am consulting for a company where users have many Outlook subfolders that have the exact same name as other Outlook subfolders (for example home, credit, rent, etc.)

The problem is that when an Outlook search is done the Outlook search by default will list the name of the Outlook folder where these emails are found but doesn't provide a complete path as to exactly where these emails are located.

Therefore users have to manually look around throughout many Outlook folders to locate the exact subfolder where the particular email(s) are located.

This is quite cumbersome since the Outlook folders and subfolders contain the exact same folder names (in completely different locations) and it is difficult to determine exactly where the particular subfolder is where these emails are located. When a particular email is found the users need to be able to quickly open this particular subfolder location to view the other emails located within this same folder (and without having to do additional Outlook searches).

We would like to be able to obtain a complete folder path as to where these emails are found so that it will then be easy to navigate to these particular Outlook subfolders without having to guess or look through several different folder locations.

Is there any way of enabling this within Outlook 2010 or if this can't be done within Outlook what optional utilities or tools can be installed that will allow this to be done?
IT GuyNetwork EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JohnBusiness Consultant (Owner)Commented:
When I search in Outlook 2010, I select the appropriate selection of All Items, Current Folder, etc. and then put the query in the search bar. The results that come up show the folder of the found email in the folder column. You may have to bring this into view by changing column widths, but it is there, does show, and does provide the correct folder information. This works for me.
IT GuyNetwork EngineerAuthor Commented:
As I have stated the searches are always able to determine the name of the folder where the emails are located.

The problem is that many of the Outlook subfolders have the exact same name as other Outlook subfolders (for example home, credit, rent, etc.) In other words these exact same folder names appear under several different Outlook folders.

I need to be able to determine the exact folder path of where these emails are found so that we can quickly navigate to the exact folder location without having to browse to several different folder and subfolder locations just to determine exactly where a particular email (that has been found in the Outlook search) is located.
JohnBusiness Consultant (Owner)Commented:
You will probably have to use a VBA Macro or some like technique.

I set up a test Outlook and made folders called Client in two Main Folders:  ABC Company and XYZ Company. So two distinct folders both called client.

I put an email on one of the client folders and search for it. It was found with no difficulty. But there was no way to determine which Client folder it was.

So you need some other kind of solution or macro at this point

Here is another article that repeats the suggestion for a VBA Macro (Folder: Get the path)
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
The only way I found to know the complete path (versus the leaf folder name as displayed as search result) is by using VBA. Since I usually have the issue with searches only, and then want to see the folder anyway, I created code to open a new view of that folder.
JohnBusiness Consultant (Owner)Commented:
A workaround that I use is to create folders like Company 1 - Bids, Company 1 - Quotes, Company 2 - Bids, Company 2 - Quotes.

Now the folder names are all unique. My (many) Outlook Folders are all unique. So when I search, In Folder is the exact answer. Works well for me.
IT GuyNetwork EngineerAuthor Commented:
OK I will try these two macros.

Are there any other macros or utilities available that can do this?

I would like to be able to try them all to determine which one works the best before I show other IT techs within this organization how to do this.
JohnBusiness Consultant (Owner)Commented:
Try the following TechNet article.

It says when you find the email, open it and press Ctrl-Shift-F which brings up the Advanced Search. Click on the Browse Button and a window opens up with current folder.

This might help but it is very cumbersome.
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
This is what I use - open a new view:
Public Sub Jump2Path()
   If ActiveExplorer.Selection.Count > 0 Then
     If TypeName(ActiveExplorer.Selection.Item(1)) = "MailItem" Then
       MsgBox ActiveExplorer.Selection.Item(1).Parent.FullFolderPath
     End If
   End If
End Sub

Open in new window

In fact it has two parts which can be used: Display the path in a message box, and open a new view containing the mail. (The restriction to MailItem is arbitrary, can be anything like task or appointment). If you do not want the message box, remove or comment that line out.

The code in (the linked code in the link provided earlier) switches the current view (called "Explorer" or "Inspector") instead.
Sadly there is no way to select an item in the user interface from the Outlook
object model, so we cannot "jump" to the email item itself in the new or changed view.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JohnBusiness Consultant (Owner)Commented:
@Knowledgeable - Thanks and I was happy to help you with this.
IT GuyNetwork EngineerAuthor Commented:
Best solution for not having to use macros

From the website:

More exactly, it's in one of the comments:

For both Outlook 2010 and 2013:
 1. Run a search to identify an e-mail in the "target" folder.
 2. Select and open (double-click) the e-mail.
 3. Click on the opened e-mail to make sure that is your active window.
 3. Press Ctrl-Shift-F (Advanced Find).
 4. Click the Browse button to reveal the full path to the e-mail.

No need to use any macro.  But a macro solution also exists:
IT GuyNetwork EngineerAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.