View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gary Keramidas Gary Keramidas is offline
external usenet poster
 
Posts: 2,494
Default Find End of List

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").e nd(xlup).address).Select

or if you just want A5 returned:

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


Gary


"Joe Schmo" wrote in message
...
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