Question : Help with formula in VBA for summing cells from two ranges into a third range

I have two ranges pointed to by rngCliSum and rngConSum. I need to subtract rngConSum from rngCliSum and place the result in another range. What would be the syntax if the other range was called rngStart16?

Answer : Help with formula in VBA for summing cells from two ranges into a third range

You don't need to use auto fill when pushing formulas. Excel knows to automatically expand the formulas to the rest of the range as if you copied and pasted them.

rngStart16.Formula = "=" & rngCliSum.Address & "-" & rngConSum.Address
rngStart16.Value = rngStart16.Value

Kevin
Random Solutions  
 
programming4us programming4us