Something like this
Code:With Worksheets("Sample") LastRow = .Cells(Rows.Count, "A").End(xlUp).Row .Range("R2").AutoFill Destination:=.Range("R2:R" & LastRow) End With
Wamhoi,
Try:
Code:Option Explicit Sub Test() Dim LastRow As Long With Worksheets("Sample") LastRow = .Cells(Rows.Count, "A").End(xlUp).Row .Range("R2:R" & LastRow).Select End With End Sub