View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Frankie Frankie is offline
external usenet poster
 
Posts: 22
Default Autosum function

I have a list of numbers with all in same column. When clicking normal
autosum function, Excel determines the sum range for me, including subtotals
& grandtotals.
How can this happen with same effect in VBA language so that I need not
define the sum ranges (variable).

E.g.

1
2
3
click autosum : =sum(1:3)
4
5
click autosum : =sum(4:5)
click autosum : =sum(above subtotals)