0

I know this questions been asked tons of times but I've attempted to use solutions from other answers and haven't been able to get it to work for my excel macro.

I have;

Range("G2").Select

Selection.AutoFill Destination:=Range("G2:G870")

However, G870 will not always be the final cell of the ending part of the range. I was hoping so it automatically picks up on whatever the range is based on the final data entry in column F. I'm not sure how to code this.

Thanks

1 Answers1

4

Just find the last row:

Range("G2").AutoFill Destination:=Range("G2:G" & Cells(Rows.Count, "F").End(xlUp).Row) 
BigBen
  • 46,229
  • 7
  • 24
  • 40