---
description: Outlook doesn’t provide the inbuilt function to search rules. Therefore, if you would like to search the Outlook rules whose names contain a specific keyword, normally, you have to check all rules one by one. But this post will show you a much smarter method.
title: How to Quickly Find All Outlook Rules Whose Names Contain a Specific Keyword
image: https://www.datanumen.com/blogs/wp-content/uploads/2018/04/vba-code-find-rules-with-specific-words-in-name.jpg
---

-
-
-

[Home](https://www.datanumen.com/blogs/) > [Solutions](https://www.datanumen.com/blogs/category/solutions/) > [Office Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/) > [Outlook Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/outlook-solutions/) > How to Quickly Find All Outlook Rules Whose Names Contain a Specific Keyword

# How to Quickly Find All Outlook Rules Whose Names Contain a Specific Keyword

[Outlook Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/outlook-solutions/) September 29, 2025

Share Now:

-
-
-
-
-
-
-
-

*Outlook doesn’t provide the inbuilt function to search rules. Therefore, if you would like to search the Outlook rules whose names contain a specific keyword, normally, you have to check all rules one by one. But this post will show you a much smarter method.*

You can create various rules in your Outlook at will. The rules are able to make your work with incoming and outgoing emails automated and efficient. However, if there are too many rules in Outlook, you will feel it a bit difficult to manage and control them. For instance, if you wish to do something with the rules containing a certain keyword in the name, generally, you have to find them among all the rules manually. That would be a pretty arduous task. But don’t worry. Here we’ll share a more intelligent approach to you. It can let you find the specific rules in a jiffy.

## Find All Outlook Rules Whose Names Contain Specific Keyword

1. First, launch Outlook application.
2. Next, access to the VBA editor with accordance to “ [How to Run VBA Code in Your Outlook](https://www.datanumen.com/blogs/run-vba-code-outlook/)“.
3. Then, in the “Microsoft Visual Basic for Applications” window, copy the code below into a new module.

```
Sub FindAllRulesContainingSpecificKeywordInName()
    Dim objStores As Outlook.Stores
    Dim objStore As Outlook.Store
    Dim objRules As Outlook.Rules
    Dim i As Long
    Dim objRule As Outlook.Rule

    Set objStores = Outlook.Application.Session.Stores

    'Process all mailboxes
    For Each objStore In objStores
        Set objRules = objStore.GetRules

        For i = objRules.Count To 1 Step -1
            Set objRule = objRules.Item(i)
            'Find specific keyword in rule name
            If InStr(objRule.Name, "Shelly") = 0 Then
               objRule.Enabled = False
               objRules.Save
            Else
               objRule.Enabled = True
               objRules.Save
            End If
        Next i
     Next
 End Sub
```

![VBA Code - Find All Outlook Rules Containing Specific Keyword]( "VBA Code - Find All Outlook Rules Containing Specific Keyword")

4. After that, click the “Run” icon in toolbar to run this macro.
5. When macro finishes, follow the steps below to check the filtered rules.

- First off, go to “File” menu.
- Then, click the “Manage Rules & Alerts” button on “Info” tab.![Manage Rules \& Alerts]( "Manage Rules & Alerts")
- Next, in the popup “Rules and Alerts” window, you can see that the rules containing the specific keyword in name are enabled and checked. But the other rules which don’t contain the keyword are disabled, as shown in the following screenshot.![Specific Rules That Contain Specific Keyword]( "Specific Rules That Contain Specific Keyword")

## Troubleshoot Outlook Problems

It’s common to encounter a variety of Outlook issues if you have used Outlook for decades. They can be some tiny problems, like occasional small errors, or some serious troubles such as severely [corrupt PST](https://www.datanumen.com/outlook-repair/) file. Generally, when encountering such Outlook problems, you can first restart it, then disable third party add-ins or rebuild mail profiles and finally resort to a professional and robust fix utility, like DataNumen Outlook Repair.

## Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including [sql corruption](https://www.datanumen.com/sql-recovery/) and outlook repair software products. For more information visit [www.datanumen.com](https://www.datanumen.com/)

Share Now:

-
-
-
-
-
-
-
-

[← Previous post](https://www.datanumen.com/blogs/7-effective-solutions-to-no-boot-disk-has-been-detected-or-the-disk-has-failed-error/)

[Next post →](https://www.datanumen.com/blogs/3-easy-methods-to-quickly-find-all-overdue-items-in-your-outlook/)

Comments are closed.

![Data Recovery Blog]()

Follow or like us on Facebook, LinkedIn and Twitter to get all promotions, latest news and updates on our products and company.

-
-
-

### Featured Products

- [DataNumen Outlook Repair](https://www.datanumen.com/outlook-repair/)
- [DataNumen SQL Recovery](https://www.datanumen.com/sql-recovery/)
- [DataNumen Exchange Recovery](https://www.datanumen.com/exchange-recovery/)
- [DataNumen Access Repair](https://www.datanumen.com/access-repair/)
- [DataNumen Excel Repair](https://www.datanumen.com/excel-repair/)
- [DataNumen PDF Repair](https://www.datanumen.com/pdf-repair/)
- [DataNumen Word Repair](https://www.datanumen.com/word-repair/)
- [DataNumen Zip Repair](https://www.datanumen.com/zip-repair/)

### Popular posts

```json
{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/#article","isPartOf":{"@id":"https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/"},"author":{"name":"AuthorCCW","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/person\/33ded6c47c77587f9158d99f05e23957"},"headline":"How to Quickly Find All Outlook Rules Whose Names Contain a Specific Keyword","datePublished":"2018-04-12T03:48:05+00:00","dateModified":"2025-09-29T05:55:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/"},"wordCount":407,"commentCount":6,"publisher":{"@id":"https:\/\/www.datanumen.com\/blogs\/#organization"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2018\/04\/vba-code-find-rules-with-specific-words-in-name.jpg","articleSection":["Outlook Solutions"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/","url":"https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/","name":"How to Quickly Find All Outlook Rules Whose Names Contain a Specific Keyword","isPartOf":{"@id":"https:\/\/www.datanumen.com\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/#primaryimage"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2018\/04\/vba-code-find-rules-with-specific-words-in-name.jpg","datePublished":"2018-04-12T03:48:05+00:00","dateModified":"2025-09-29T05:55:25+00:00","description":"Outlook doesn’t provide the inbuilt function to search rules. Therefore, if you would like to search the Outlook rules whose names contain a specific keyword, normally, you have to check all rules one by one. But this post will show you a much smarter method.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanumen.com\/blogs\/how-to-quickly-find-all-outlook-rules-whose-names-contain-a-specific-keyword\/#primaryimage","url":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2018\/04\/vba-code-find-rules-with-specific-words-in-name.jpg","contentUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2018\/04\/vba-code-find-rules-with-specific-words-in-name.jpg","width":741,"height":457,"caption":"VBA Code - Find All Outlook Rules Containing Specific Keyword"},{"@type":"WebSite","@id":"https:\/\/www.datanumen.com\/blogs\/#website","url":"https:\/\/www.datanumen.com\/blogs\/","name":"Data Recovery Blog","description":"Discuss every aspect of data recovery","publisher":{"@id":"https:\/\/www.datanumen.com\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.datanumen.com\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.datanumen.com\/blogs\/#organization","name":"Data Recovery Blog","url":"https:\/\/www.datanumen.com\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2019\/02\/logowithouttext.jpg","contentUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2019\/02\/logowithouttext.jpg","width":296,"height":397,"caption":"Data Recovery Blog"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataNumen","https:\/\/x.com\/DataNumen","http:\/\/www.linkedin.com\/company\/datanumen","https:\/\/myspace.com\/datanumen\/","http:\/\/www.pinterest.com\/datanumen\/","https:\/\/www.youtube.com\/channel\/UCVIIuuKfUBHSJauUaVP13tw"]},{"@type":"Person","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/person\/33ded6c47c77587f9158d99f05e23957","name":"AuthorCCW","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","caption":"AuthorCCW"},"sameAs":["https:\/\/www.datanumen.com\/"]}]}
```
