defining a range

S

Stefi

Hi All,

I defined a range containing empty cells in column C:
Dim emptycells As Range
Set emptycells = Columns("C:C").SpecialCells(xlCellTypeBlanks)

How can I define another range that contains all rows in which these empty
cells occur?

Thanks,
Stefi
 
N

Norman Jones

Hi Stefi,

Try:

Dim EmptyCells As Range

On Error Resume Next
Set EmptyCells = Columns("C:C"). _
SpecialCells(xlCellTypeBlanks).EntireRow
On Error GoTo 0
 
S

Stefi

Thanks Norman, how simple it is if one knows the answer!
Stefi


„Norman Jones†ezt írta:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top