Can anybody explain because I’m puzzled?
I have this that is working;
When even ever I step in and hover over the "xlCellTypeBlanks" part, it shows "=4"
I’m puzzle because the sub executes as expected under first “If” and second “If” condition, BUT the "xlCellTypeBlanks" part will ALL WAYS show "=4" regardless of whether there no blanks or 10.
So what exactly is "=4" if it’s not the number of blank cells?
I have this that is working;
VBA Code:
Sub CountCheckIfBlank()
On Error Resume Next
If Range("A8:A50").SpecialCells(xlCellTypeBlanks).Count = 0 Then
Range("B23").Select
End
End If
If Range("A8:A50").SpecialCells(xlCellTypeBlanks).Count > 0 Then
Range("A23").Select
End If
End Sub
I’m puzzle because the sub executes as expected under first “If” and second “If” condition, BUT the "xlCellTypeBlanks" part will ALL WAYS show "=4" regardless of whether there no blanks or 10.
So what exactly is "=4" if it’s not the number of blank cells?