Application.FindFormat Property

Excel Developer Reference

Sets or returns the search criteria for the type of cell formats to find.

Syntax

expression.FindFormat

expression   A variable that represents an Application object.

Example

In this example, the search criteria is set to look for Arial, Regular, Size 10 font cells and the user is notified.

Visual Basic for Applications
  Sub UseFindFormat()
' Establish search criteria.
With Application.<strong>FindFormat</strong>.Font
    .Name = "Arial"
    .FontStyle = "Regular"
    .Size = 10
End With

' Notify user.
With Application.<strong>FindFormat</strong>.Font
    MsgBox .Name &amp; "-" &amp; .FontStyle &amp; "-" &amp; .Size &amp; _
        " font is what the search criteria is set to."
End With

End Sub

See Also