View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
bttman bttman is offline
external usenet poster
 
Posts: 4
Default check a range of cells to see if they are empty

This function returns true if range provided as argument is truly empty
(no spaces, formulas, etc).


Function range_empty(rng As Range) As Boolean
Dim cell As Range
range_empty = True
For Each cell In rng
If cell.Formula < "" Then
range_empty = False
Exit For
End If
Next
End Function