I need to calculate the sum of a range. It looks to me range.subtotal is the way to do it. The problem is I don't know how to use it. I did an Internet set but found no detailed instruction. The next thing I tried is to insert a "=sum" formula to a cell in a spreadsheet. I have a problem with this also. How do I do the following? Thanks.
[E65536].End(xlUp).Offset(3, 0).Formula = "=sum(E6:" & [E65536].End(xlUp) & ")"
[E65536].End(xlUp).Offset(3, 0).Formula = "=sum(E6:" & [E65536].End(xlUp) & ")"