Thread: Lastrow
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bishop Bishop is offline
external usenet poster
 
Posts: 208
Default Lastrow

I'm familiar with this code to find the last row:

LastRow = .Range("A" & Rows.Count).End(xlUp).Row

But what if I need LastRow to be at a certain value? If I know column A is
going to have data and I want to assign LastRow the first row that has a
value of 0 how would I do that? What if I need LastRow to be the row 2 rows
above the first row that has a value of 0?