Hello all and good morning
I want to count the number of blank cells in a column range and have a message box provide the answer
this is waht i have tried so far, any help would be great please
I want to count the number of blank cells in a column range and have a message box provide the answer
this is waht i have tried so far, any help would be great please
Code:
Dim LastRow As Long
Dim iBlank, rng As Range
LastRow = Sheets("Data").Range("B2").End(xlDown).Row
Set rng = Sheets("Data").Range("AA2:AA" & LastRow).Find("")
With WorksheetFunction
iBlank = .CountA(rng)
End With
MsgBox "Blank: " & iBlank
Last edited: