If I have a set of cells in a worksheet that I want to add up, I can use the formula:
=SUM(Sheet1!A1:A10)
To do this in a sub, I would use:
I was able to get it to work just by the line:
Cells(x,y) = WorksheetFunction.sum(range(a,b:a,d))