View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ron de Bruin Ron de Bruin is offline
external usenet poster
 
Posts: 11,123
Default How to Retrieve Last Used Cell In Column

Hi Marshall

Sub LastCellInColumnA()
Range("A" & Rows.Count).End(xlUp).Select
End Sub

this will give you the row
Range("A" & Rows.Count).End(xlUp).row


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Marshall" wrote in message ...
I'm having trouble figuring out how to do this. Could someone help me
out.


All of the cells before the last used cell may or may not be filled
with something. In the end I'm going to need the row number of this
cell as well.


Any help is greatly appreciated!

Thanks :)



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/