I'm trying to get a dynamic range in a recorded macro.
The data in column "O" is variable.
When I used the macro, VBA set it at the range of the specific worksheet.
Is there a way to make the autofill option variable to the amount of rows?
I used this code:
Range("O2").Select
Selection.AutoFill Destination:=Range("O2:O188")
Range("O2:O188").Select
I want the range to be dynamic.