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 find folder by name in Outlook?

For example, you have created many email folders in Outlook, when a specified personal folder need to be opened, you have to expand multiple folders until that specified folder shows up. It is troublesome to expand multiple folders one by one just for opening a specified personal folder. Actually, if you remember the folder name, all things will become easily. In this tutorial, we will provide you with a method of finding folder by its name in Outlook instead of expanding folders one by one to find the folder.

Find folder by name in Outlook with VBA code

Search folder by name across accounts in Outlook by Kutools for Outlookgood idea3

Search and go to a folder by name in outlook

If there are multiple accounts with hundreds of folders in Outlook, it is troublesome to find a specific or similar folders for you. Here, with the Go To utility of Kutools for Outlook, you can find similar folders based on key character or to find a specific folder by the full name, then just double click at the folder name in the list of the dialog to go to open it .    Click for full featured free trial in 60 days!
doc find folder by name 6
 
Kutools for Outlook: with dozens of handy Outlook add-ins, free to try with no limitation in 60 days.
Office Tab - Enable Tabbed Editing and Browsing in Office, and Make Work Much Easier...
Kutools for Outlook - Brings 100 Powerful Advanced Features to Microsoft Outlook
  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by rules; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails at once; Auto Add Greeting when reply; Auto Add Date&Time into subject...
  • Attachment Tools: Auto Detach, Compress All, Rename All, Auto Save All... Quick Report, Count Selected Mails, Remove Duplicate Mails and Contacts...
  • More than 100 advanced features will solve most of your problems in Outlook 2010-2019 and 365. Full features 60-day free trial.

arrow blue right bubble Find folder by name in Outlook with VBA code

With following VBA code, you can easily find a specified folder by its name.

Note: You need to remember the folder name in order to use this VBA code.

1. Press the Alt + F11 keys on the keyboard to open the Microsoft Visual Basic for Applications window.

2. Then double click the Project1 > Microsoft Outlook Object > ThisOutlookSession to open the Project1 – ThisOutlookSession window. See screenshot:

3. Copy and paste the following VBA code into the Project1 – ThisOutlookSession window.

VBA: find folder by name

Sub FindFolderByName()
    Dim Name As String
    Dim FoundFolder As Folder
    
    Name = InputBox("Find Name:", "Search Folder")
    If Len(Trim$(Name)) = 0 Then Exit Sub
    
    Set FoundFouder = FindInFolders(Application.Session.Folders, Name)
    
  If Not FoundFouder Is Nothing Then
    If MsgBox("Activate Folder: " & vbCrLf & FoundFouder.FolderPath, vbQuestion Or vbYesNo) = vbYes Then
      Set Application.ActiveExplorer.CurrentFolder = FoundFouder
    End If
  Else
    MsgBox "Not Found", vbInformation
  End If
End Sub
Function FindInFolders(TheFolders As Outlook.Folders, Name As String)
  Dim SubFolder As Outlook.MAPIFolder
  
  On Error Resume Next
  
  Set FindInFolders = Nothing
  
  For Each SubFolder In TheFolders
    If LCase(SubFolder.Name) Like LCase(Name) Then
      Set FindInFolders = SubFolder
      Exit For
    Else
      Set FindInFolders = FindInFolders(SubFolder.Folders, Name)
      If Not FindInFolders Is Nothing Then Exit For
    End If
  Next
End Function 

4. Then press F5 key on the keyboard to run the VBA code.

5. In the Macros dialog box, click the Run button.

6. In the popping up Search Folder dialog box, please type the folder name in the text box, then click the OK button. See screenshot:

7. Then a Microsoft Outlook dialog box pops up, it shows the path of your desired folder, and then click the Yes button.

8. Then the specified email folder will be opened immediately.

Note: This VBA code can be applied to Outlook 2007, 2010 and 2013.


arrow blue right bubble Search folder by name across accounts in Outlook by Kutools for Outlook

If you are not good at VBA, you can try Kutools for Outlook's Go To utility, which can find and search folder with name or specific character, then directly go to the folder

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:

1. Click Kutools Plus > Go To.
doc find folder by name 5

2. In the Go To dialog, type the folder name or specific characters in the search bar, then the relative folders are list.
doc find folder by name 6

3. Double click at the folder name you want to go to and open, then the folder is open.
doc find folder by name 7


Kutools for Outlook - Brings 100 Advanced Features to Outlook, and Make Work Much Easier!

  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by custom; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails in seconds; Auto Add Greeting when reply; Add Date into subject...
  • Attachment Tools: Manage All Attachments in All Mails, Auto Detach, Compress All, Rename All, Save All... Quick Report, Count Selected Mails...
  • Powerful Junk Emails by custom; Remove Duplicate Mails and Contacts... Enable you to do smarter, faster and better in Outlook.
shot kutools outlook kutools tab 1180x121
shot kutools outlook kutools plus tab 1180x121
 
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.
  • To post as a guest, your comment is unpublished.
    Rohit · 2 years ago
    It looks great but I'm looking more folder with similar name....
  • To post as a guest, your comment is unpublished.
    John · 2 years ago
    I am currently working with Outlook 2013, and while this tool is wonderfully helpful, I'm in the same boat as Matt and Richard. I would like to be able to somehow go through multiple folders with the same name. I would also like to be able to do this: if I have multiple folders with dates, 2012,2013,2014 for example, I would like to be able to put in 20* or 20?? and then be prompted to view any of the aforementioned folders, instead of just defaulting to the first one it finds.
  • To post as a guest, your comment is unpublished.
    Rafi Schwarts · 2 years ago
    The line "Function FindInFolders(TheFolders As Outlook.Folders, Name As String)" is throwing a compile error message - User-defined type not defined
  • To post as a guest, your comment is unpublished.
    Rafi Schwarts · 2 years ago
    the line "Function FindInFolders(TheFolders As Outlook.Folders, Name As String)" is throwing a Compile error message: [b][u]User-defined type not defined[/u][/b]
  • To post as a guest, your comment is unpublished.
    Richard · 3 years ago
    Just like Matt wrote, I was also looking for this. The way the code operates is that it will open the first folder it finds with the name to search for. Is it possible to adjust the code so it will find multiple instances?
  • To post as a guest, your comment is unpublished.
    Matt · 3 years ago
    Is there a way to add folder iteration to the above code. Say the user has multiple folders named Employee, is it possible for it to go through a loop to find all instances and allow user to select appropriate folder?