Hello All,
I want to paste a formula between two active cells. However, the lower active cell varies from month to month. Therefore, the range to which I want to paste my formula also varies. I have attached an example. In the example, the formula needs to be copied from cell C5 and pasted until the cell one row above "Grand Total" in column C.
My problem is that the row (not the column) for the cell that contains "Grand Total" will vary from month to month. I would like to take this variation into account in the vba code. The formula will always be pasted in column C between cell C5 and "Grand Total", which is in column C. The other "Grand Total" in column B is not pertinent to my question. If someone could provide some code, I would be most appreciative.
Best,
Andrew
Bookmarks