Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
check a range of cells to see if they are empty
I am looking for code that will check a range of cells to see if they
contain any data. If they do, then I know the sheet has been used before and it is not the first time it is being used. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Check for empty range in vba | Excel Discussion (Misc queries) | |||
Checking for empty cells in a range | Excel Programming | |||
Evaluating a Range of Empty Cells with VBA | Excel Programming | |||
sum next two non-empty cells in a range | Excel Worksheet Functions | |||
Check for empty cells in Print Area? | Excel Programming |