Thanks for the suggestions guys. Couldn't work out the clipboard methods. Tried DestinationRange.Formula = FormulaRange.Formula instead of the With block. Also removed .Value = .Value from inside the With block. Both produce the same result. The values (not the formulas) from 'FormulaRange' are entered into the 'DestinationRange'.
EDIT: This next paragraph is wrong (I've now discovered, see later posts). Range.Formula DOES work when copy and pasting multiple formulas in a range but the formulas are not relative. This method essentially copies and pastes the formulas as strings.
I've done my own testing and discovered that this method (Range.Formula) works only when copying a single formula to a range (single-to-single, single-to-multiple cells). It cannot be used to copy multiple formulas at the one time. A working alternative (I just thought of now, of course) is paste columns, rather than rows, which works fine because each column contains the same formula. Range.Formula method works well in this code:
I have columns that depend on different columns in different positions, so I was stuck with going down the rows. I've managed to eliminate the "selections" to come up with this, which is the best I can do I think:
Thanks so much for the help.
Cheers, Rob
Bookmarks