View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JStone0218 JStone0218 is offline
external usenet poster
 
Posts: 12
Default Help with LastRow

I need help modifying the following code:

Sub Test()

With ActiveSheet
Range("a" & ActiveCell.Row).Offset(1, 0).Select
End With

End Sub

I have data in column "a" and I need the code above to execute until it reaches
the last row. The range is variable based on the data I import from another
file. Is this doable?

Thanks,

James