It seems like a slightly odd way to do things but, yes, it can be done, at least indirectly, by, for example, adding areas to the range being summed.
Code:
Dim tjRange As Range
Dim x As Integer
Set tjRange = Sheets!Sheet1.Range("a1")
For x = 2 To 7
Set tjRange = Union(tjRange, Cells(x, x))
MsgBox WorksheetFunction.Sum(tjRange)
Next
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.