I am trying to use VBA to sum a certain selection of cells. But I need it to input the formula with cell reference into Excel, not just the value it calculated. The only way I cn come up with is to name the selected range and use ="=SUM(SelectedRange)" The problem is that I need to be able to do this several times, and I can't rename the ranges. Is there a way to work a loop in so that it changes the range name (to say..SelectedRange2, SelectedRange3 and so on...). Or maybe there is a better way to do this.
Thanks in advance for the help
Chris
Thanks in advance for the help
Chris