在代码中搜索文本

在模块中搜索特定文本

  1. “编辑” 菜单上,选择“ 查找”。 The Find dialog box appears.

  2. In the Find What box, type the text you want to search for (if you didn't select the text before displaying the dialog box).

  3. Select a Search option to specify where to look for the text.

  4. Select a direction from the Direction list to specify the direction of the search.

  5. 若要设置搜索的限制,请选择:

    • Find Whole Word Only to search for the complete word by itself and not as part of another word.

    • Match Case to find an exact match.

    • Use Pattern Matching to use wildcards or ranges.

  6. Choose Find Next.

另请参阅

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。