Find End of List

  • Thread starter Thread starter Joe Schmo
  • Start date Start date
J

Joe Schmo

How do I find the cell address the end of a list. See list below. How to
find cell A5.

A1 Jim
A2 John
A3 Sally
A4 Sara
A5 Bill
 
here are a couple different ways:

this will select the cell. it's not a good practice to select, but just used as
an illustration here.

range(worksheets("Sheet1").cells(rows.Count,"A").end(xlup).address).Select

or if you just want A5 returned:

lastcell = worksheets("Sheet1").cells(rows.Count,"A").end(xlup).address(0,0)
 

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