ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   EXCEL 97: Count Conditional Formatting? (https://www.excelbanter.com/excel-programming/310038-re-excel-97-count-conditional-formatting.html)

Norman Jones

EXCEL 97: Count Conditional Formatting?
 
Hi Simsjr,

Try:

Sub Tester02()
Dim Rng As Range
Dim myCount As Long

On Error Resume Next
Set Rng = Columns("A").SpecialCells _
(xlCellTypeAllFormatConditions)
On Error GoTo 0

If Not Rng Is Nothing Then
myCount = Rng.Count
Else
myCount = 0
End If
MsgBox myCount

End Sub

---
Regards,
Norman



"simsjr" wrote in message
...
Hello,

Anyone know how to make Excel 97 count all the cells in a column and count
how many have conditional formatting applied?





All times are GMT +1. The time now is 05:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com