MatchCase Property

Microsoft Publisher Visual Basic

MatchCase Property

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

expression.MatchCase

expression    Required. An expression that returns a FindReplace object.

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