Hello
I have the code:
Selection.AutoFill Destination:=Range("C2:C159800")
Range("C2:C159800").Select
But I want it to fill the column dynamically, corresponding to the next column's rows.
E.g., if the file has 100 rows, it should autofill up to 100, etc.
How can I do that?
Also, do I need the line Range("C2:C159800").Select at the end or the macro recorder produced it?
Thanks
I have the code:
Selection.AutoFill Destination:=Range("C2:C159800")
Range("C2:C159800").Select
But I want it to fill the column dynamically, corresponding to the next column's rows.
E.g., if the file has 100 rows, it should autofill up to 100, etc.
How can I do that?
Also, do I need the line Range("C2:C159800").Select at the end or the macro recorder produced it?
Thanks