How do I find emails listed in the TASK section?

I have emails that are listed in the TASK section in folders that are actually subfolders other main folders. How do I find what folder (the main folder) the message resides in? Right now, it tells me the folder the message resides in, but I have to search through a bunch of main folders to find that email in it's sub folder.

See the image
Clipboard01.gif
Takamine334Asked:
Who is Participating?
 
David LeeConnect With a Mentor Commented:
Ok, here's the code for that.
Sub DisplayFolderPath()
    Dim olkItem As Object, olkParent As Folder
    Set olkItem = Application.ActiveExplorer.Selection(1)
    Set olkParent = olkItem.Parent
    MsgBox "This item is in the folder" & vbCrLf & vbCrLf & olkParent.FolderPath, vbInformation + vbOKOnly, "Folder Path"
    Set olkParent = Nothing
    Set olkItem = Nothing
End Sub

Open in new window

0
 
David LeeCommented:
Hi, Takamine334.

Sorry, I don't understand.  Can you explain?
0
 
Takamine334Author Commented:
That first Task is in the folder "Mount Wachusett Community College", but actually that folder is in a folder called "Mid-Atlantic" and that folder is in a folder called "NACA".

My NACA folder has 7 folders in it:
1. Mid Atlantic
2. South
3. Central
4. Northern Plains
5. Mid America
6. West
7. Northeast

In those 7 folders I have about 50+ folders that correspond to college, such as "Mount Wachusett Community College".

The Task shows the folder "Mount Wachusett Community College", but I'm curious if there is a way to show it as "Mid America / Mount Wachusett Community College", so that I can find the correspondence quicker.

0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
David LeeCommented:
Got it.  You want to see the whole folder path.  I see two possible ways to do this.

1.  Create a user-define property and populate it with the path.  The code will have to be connected to every task folder or you'll have to manually run it periodically.

2.  Create a macro that displays the path via a button click.  When the button is clicked display a dialog-box with the path.
0
 
Takamine334Author Commented:
#2 would most likely be the way to go.
0
 
Takamine334Author Commented:
Perfect. Thank you.
0
 
Takamine334Author Commented:
Thank you!
0
 
David LeeCommented:
You're welcome.  Any time.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.