Hello,
This code is not returning more than the number of sheets in a book. Each sheet has plenty of Red font cells. Not conditional format.
Dim Sh As Worksheet
i = 0
For Each Sh In ThisWorkbook.Worksheets
With Sh.UsedRange
With Application.FindFormat.Font
.Subscript = False
.Color = 255
.TintAndShade = 0
End With
Set c = Cells.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=True)
If Not c Is Nothing Then
i = i + 1
End If
End With
Next
MsgBox i
Any ideas?
Dave
This code is not returning more than the number of sheets in a book. Each sheet has plenty of Red font cells. Not conditional format.
Dim Sh As Worksheet
i = 0
For Each Sh In ThisWorkbook.Worksheets
With Sh.UsedRange
With Application.FindFormat.Font
.Subscript = False
.Color = 255
.TintAndShade = 0
End With
Set c = Cells.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=True)
If Not c Is Nothing Then
i = i + 1
End If
End With
Next
MsgBox i
Any ideas?
Dave