In this mockup, the blue columns are text, the orange column is a formula.
excelforum1.jpg
I have working code that adds a new row to the bottom of a table, copies over some cells from a different tab, and then copies the formula from the bottom cell (D6) into the new row's formula cell (D7). I need this to be flexible, so I don't hard-code any cells, but use .Range(1,4) of the last row to specify my formula cell.
I now have multiple formula columns instead of just one (below I show 3 orange formula columns), so I now need to copy the formulas from D6:F6 into D7:F7.
excelforum3.jpg
I tried a few different ways of updating the "Set formulaCells" and "newRow.Range" statements using Range and Cells but none of my trials worked.
How do I specify this range of cells without having to hard-code the cell names?
Bookmarks