fluxcapacitr609
New Member
- Joined
- Feb 21, 2018
- Messages
- 24
Im trying to count the empty cells, but its counting empty cells that are colored. Any way to not count empty cells that have a color to them.
Code:
Sub percentPage()
Dim bcheck As Boolean
Dim myCell
On Error Resume Next
'January
bcheck = Evaluate("isref(Jan_2018!A1)")
If bcheck Then
Sheets("Percentages").Range("B2").Formula = "=COUNTA(Jan_2018!A2:A500)"
Sheets("Percentages").Range("C2").Formula = "=COUNTA(Jan_2018!B2:B500)"
End If
End Sub