the way you had it written, the formula entered into the cell would be
=SUM(rng:rng1)
which excel cannot recognise
Becuase you are holding rng & rng1 as variables, you must insert them into the formula string as seperate entities (as PHV has shown you)
Rgds, Geoff
We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.