Hi,
I have found various autofill macros for copying down a formula in one column for as many rows as have data in them in the column to the left. However I cannot for the life of me quite get it to function the way I want it to:
The cell I have my formula in lies in column C. It's location in column C will vary, but is always the last cell with data.
I assume I begin by finding this cell:
Next I want to copy the formula in that cell down column C for as long as data exists in the column to the left (column B)
This would be easy if it was always the same number of cells to autofill.
The thing is this is also a variable number each time I run the code. I have seen many forums discussing this problem but they all show how to solve the problem as if you are copying data from cell C2.
My problem is I start from the last cell with data in column C (variable) and finish at the last cell with data in column B (variable).
It's having two variables that is spoiling my party. Since I am a self taught novice on VBA I just can't quite figure out the correct syntax for this.
Thanks for any and all interest and help
Bookmarks