Another issue to resolve
How about looking at the number of blanks (cells that are empty or evaluate to
""):
With Range("M28:m1000")
If Application.CountBlank(.Cells) = .Cells.Count Then
MsgBox "all look blank"
Else
MsgBox "something looks like it's there"
End If
End With
Pat wrote:
If WorksheetFunction.CountA(Range("M28:M1000")) 0 Then
Because each cell in the range contain a formula the line of code will
always return true regardless if no result has been returned by any of the
formulas. Can anyone tell me if the code can be changed to only return true
if there is a result in any of the cells.
Thank U
Pat
--
Dave Peterson
|