Table of contents
TOC
Collapse the table of content
Expand the table of content

FindReplace.MatchCase Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Sets or returns a Boolean that represents the case sensitivity of the search operation. Read/write.

Syntax

expression. MatchCase

_expression_A variable that represents a FindReplace object.

Return Value

Boolean

Remarks

The default value for MatchCase is False.

Example

This example will select the first occurrence of the word "factory" regardless of case.

With ActiveDocument.Find 
 .Clear 
 .MatchCase = False 
 .FindText = "factory" 
 .Execute 
End With 
© 2018 Microsoft