Hello,
I do not know how to write code, but only how to record macros. I have 3 adjacent cells with vlookup formulas (E2, F2, and G2), and i want the formula to fill to last row with data. Each time the macro is ran, it will start in the same spot (E2:G2), but will have a different end point depending on how many rows of data are being added.
Here is the code that was recorded:
Range("E2:G2").Select
Selection.AutoFill Destination:=Range("E2:G2519")
How can i change the destination range to go to the last row, and not a specific range?
Thanks,
Erik
I do not know how to write code, but only how to record macros. I have 3 adjacent cells with vlookup formulas (E2, F2, and G2), and i want the formula to fill to last row with data. Each time the macro is ran, it will start in the same spot (E2:G2), but will have a different end point depending on how many rows of data are being added.
Here is the code that was recorded:
Range("E2:G2").Select
Selection.AutoFill Destination:=Range("E2:G2519")
How can i change the destination range to go to the last row, and not a specific range?
Thanks,
Erik