Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here's what I'm trying to do. First find the cell in column one with
the value "VALUE". Then find the first empty cell that appears above that "VALUE" cell. I'm using the following code but am getting an Object Required error at the while loop. Any ideas about what I'm doing wrong. Sub findEmpty() For Each cell In Range("A:A") If cell = "VALUE" Then myCell = Cells(cell.Row, 1) MsgBox myCell.Value While IsEmpty(myCell) myCell = myCell.Offset(-1, 0) Wend End If Next cell End Sub Also, does VBA have different properties available to distinguish between totally empty cells vs cells that have a formula that results in a blank cell? Thanks for any help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
find empty cells in a column then append row that empty cell is in | Excel Programming | |||
Find 1st empty cell within each row | Excel Programming | |||
find last none empty cell | Excel Discussion (Misc queries) | |||
Find Empty Cell in Row | Excel Programming | |||
Find 1st Empty Cell: How to? | Excel Programming |