Cookies help us deliver our services. By using our services, you agree to our use of cookies.
Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to quickly go to and open the folder of searching result in Outlook?

In Outlook, you can search emails based on the specific text with the Searching function. But, if you are searching through all outlook items, you cannot quickly find out the folder of the searching result. In this case, here I have some tricks which can help you quickly go to and open the folder of the searching result.

Go to and open the folder of searching result with VBA

Go to and open the folder of searching result with Right-Click


Go to and open the folder of searching result with VBA

In Outlook, there is no built-in function can handle this job, except VBA code.

Before using the VBA code, you need to display the folder name in the searched results.

1. Click View > Add Columns.
doc go to open folder of searching result 1

2. In the Show Columns dialog and in Select available columns from drop-down list, select All Mail fields, then choose In Folder in the Available columns list.
doc go to open folder of searching result 2

3. Click Add to add In Folders to Show these columns in this order list, then click Move UP button to move In Folder to the top.
doc go to open folder of searching result 3

4. Click OK to close dialog. Now while you are searching emails, the folder name will be displayed in searching results.
doc go to open folder of searching result 4

5. Now press Alt + F11 keys to enable Microsoft Visual Basic for Applications window, click Insert > Module to create a new Module.

6. Copy and paste below code into the Module.

VBA: Go to folder by a name

Sub FindFolderByName()
'UpdatebyExtendoffice20181105
    Dim xFldName As String
    Dim xFoundFolder As Folder
    Dim xYesNo As Integer
    On Error Resume Next
    xFldName = InputBox("Folder Name:", "Kutools for Outlook")
    If Len(Trim(xFldName)) = 0 Then Exit Sub
    Set xFoundFolder = ProcessFolders(Application.Session.Folders, xFldName)
    If xFoundFolder Is Nothing Then
        MsgBox "Not Found", vbInformation, "Kutools for Outlook"
        Exit Sub
    End If
    xYesNo = MsgBox("Activate Folder: " & vbCrLf & xFoundFolder.FolderPath, vbQuestion Or vbYesNo, "Kutools for Outlook")
    If xYesNo = vbNo Then Exit Sub
    Set Application.ActiveExplorer.CurrentFolder = xFoundFolder
End Sub
Function ProcessFolders(Flds As Outlook.Folders, Name As String)
    Dim xSubFolder As Outlook.MAPIFolder
    On Error Resume Next
    Set ProcessFolders = Nothing
    For Each xSubFolder In Flds
        If UCase(xSubFolder.Name) = UCase(Name) Then
            Set ProcessFolders = xSubFolder
            Exit For
        Else
            Set ProcessFolders = ProcessFolders(xSubFolder.Folders, Name)
            If Not ProcessFolders Is Nothing Then Exit For
        End If
    Next
End Function

7. Press F5 key to enable the code, now enter the folder name you want to go to into the dialog.
doc go to open folder of searching result 5

8. Click OK, a dialog pops out to remind you the location of the folder, click Yes to directly go to the folder, or click No to cancel.
doc go to open folder of searching result 6


Go to and open the folder of searching result with Right-Click

If you have Kutools for Outlook, there will be an Open folder utility embed in the right-click menu which can quickly go to the folder of the selected email.

Kutools for Outlook , Includes 100+ powerful features and tools for Microsoft Outlook 2016, 2013, 2010 and Office 365.

Free install Kutools for Outlook, and then do as below steps:

After searching, right click at the result you want to open its folder, select Open folder from the context menu.
doc go to open folder of searching result 7



Kutools for Outlook

More than 100 Advanced Functions for Outlook 2010, 2013, 2016, 2019 and 365

screen shot kutools for outlook tiny for banner 201812

More Features  |  Free Download  |  Only $39.00 for hundreds of functions

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.