Find first empty row

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

Guest

I need to find the row number of the first empty row in a spreadsheet. I've seen some solutions for finding the last value in a column, but I need the first empty row number

Thanks
Ken G.
 
OK I've done this using COUNTA(A$:A$) - but now I need to use this value in a range - see separate post.
 
Do you mean the first *completely* empty row?

A VBA solution:

With ActiveSheet.UsedRange
MsgBox .Rows(.Rows.Count).Row + 1
End With

This assumes that you ignore empty rows at the top of the sheet, before your
data begins.

--

Vasant




Ken G said:
I need to find the row number of the first empty row in a spreadsheet.
I've seen some solutions for finding the last value in a column, but I need
the first empty row number.
 
Yes, but I allowed for rows above the data

----- Vasant Nanavati wrote: ----

Do you mean the first *completely* empty row

A VBA solution

With ActiveSheet.UsedRang
MsgBox .Rows(.Rows.Count).Row +
End Wit

This assumes that you ignore empty rows at the top of the sheet, before you
data begins

--

Vasan




Ken G said:
I need to find the row number of the first empty row in a spreadsheet
I've seen some solutions for finding the last value in a column, but I nee
the first empty row number
 

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