First of all to answer your question in the previous post.
Does this same hold true for the way the code will work.
The formulas are the same as if you put them in by hand its just they are put in with code. This being the case they exhibit the same behavior and so the simple answer is yes.
Try the code below but remember it has been written to run when there is a totals row, if you run it without the totals then you will lose a row of data (and because you are doing it with code you can't undo the action).
Bookmarks