First Empty Row

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,
I am trying to get my database to use the first empty row it "should" find.

The thing is it all works great until I delete the contents of a row (not
the row itself).
IE:
A2:data
A3:data
A4:empty
A5:data
A6:data

It still refuses to see this empty row, and just goes to the first empty
row under my data.

So, is there a way to make Excel see an empty row, even if it's in the
middle of other data. Or scan from the top down, and take the first row it
sees has nothing in it.

Regards
Peter
 
Hi Peter,

-----Original Message-----
Hello all,
I am trying to get my database to use the first empty row it "should" find.

..Range("A2", "A6").SpecialCells(xlCellTypeBlanks).Cells
(1).Row

gives you the first row with empty cells - in your example
it would be "4"


Best

Markus
 
Thanks Markus, worked like a charm =)

Markus Scheible said:
Hi Peter,



..Range("A2", "A6").SpecialCells(xlCellTypeBlanks).Cells
(1).Row

gives you the first row with empty cells - in your example
it would be "4"


Best

Markus
 
Hi Peter,

it was a pleasure to help ;o)

Best regards,

Markus
 

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

Back
Top