Application.FindFormat property (Excel)

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.

Sub UseFindFormat() 
 
 ' Establish search criteria. 
 With Application.FindFormat.Font 
 .Name = "Arial" 
 .FontStyle = "Regular" 
 .Size = 10 
 End With 
 
 ' Notify user. 
 With Application.FindFormat.Font 
 MsgBox .Name & "-" & .FontStyle & "-" & .Size & _ 
 " font is what the search criteria is set to." 
 End With 
 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.