I'm having trouble in changing my macro to autofill. It is a table and could be 1-5000 lines.
This is what I originally recorded on my macro -
Selection.AutoFill Destination:=Range("F2:F1511")
Range("F2:F1511").Select
I tried changing it to :
Selection.AutoFill Destination:=Range("F2:F" & LastRow")
Range("F2:F" & LastRow").Select
But it didn't work.
Column F will have 00000 in it but I am replacing it with a formula which I want to copy down to last row.
This is what I originally recorded on my macro -
Selection.AutoFill Destination:=Range("F2:F1511")
Range("F2:F1511").Select
I tried changing it to :
Selection.AutoFill Destination:=Range("F2:F" & LastRow")
Range("F2:F" & LastRow").Select
But it didn't work.
Column F will have 00000 in it but I am replacing it with a formula which I want to copy down to last row.