View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Denis Petrov Denis Petrov is offline
external usenet poster
 
Posts: 1
Default Insert SUM function for range

Dear All,

I have a variable range of data in a column. Exactly at
the bottom of this column I need to insert a SUM function
for the numbers above (not just calculate the totals). I
tried
ActiveSheet.Range("a6").End(xlDown).Offset(1, 0).Formula
= "=SUM(a2:(Range("a6").End(xlDown))"
but it's not working

Please advise!

Thanks.

Denis Petrov