View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
merjet merjet is offline
external usenet poster
 
Posts: 812
Default finding the last cell with content

I'm having problems determining my range in a macro. I'm
running an equation L=(K-J)/K. I want my range to be K2
thru (the last cell in K that has a value)

Can anyone help me determine the code?


iRow = Sheets("Sheet1").Range("K65536").End(xlUp).Row
Set rng = Sheets("Sheet1").Range("K2:K" & iRow)

HTH,
Merjet