Hello all,
I used formula and autofill it with number of rows of data I have. The problem is the formula and autofill are recorded in a macro and the number of rows are different everytime I run the macro. Example: the first time I run the macro with formula and doing the autofill for 100 rows of data I got at the time. It works ok. But then the next time I run the macro, given the # of rows of data are different, like 200 rows of data and when I run the macro with formula and autofill, it only filled up to 100 rows of data.
I looked at the macro and I see the code below:
Selection.AutoFill Destination:=Range("D2:D101")
Is there a way to find the last row of data and autofill from D3 to last row of data only? Any other method besides finding the last row?
Please help.
Bookmarks