View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Pet e McCosh Pet e McCosh is offline
external usenet poster
 
Posts: 1
Default Assigning a row to a variable

Todd,

Dim LastRow as Integer
LastRow = Range("A65536").End(xlUp).Row

Will give you the row index of the last populated cell in
column A. You can then manipulate this number to your
heart's content.

Pete.

-----Original Message-----
Hi all,

Have one that's driving me nuts:

I need to look at a column and find the last populated
cell of that column. Then I need to determine the first
blank row below that cell. My trouble is the next

part...I
don't want to select this row or anything, I want to
assign a variable to it for use in another sub.

Hope I explained this clearly

Todd


.