title: The sum of a column using macro Excel 2010 vba
body: <p>I use this macro for calculating the sum but it doesn't work. This is what I tried so far:</p>
  
  <pre><code>Sub sum()
  
  I = .Range("E2").End(xlDown).Row
  
  cumul = 0
  For E = 2 To I
   cumul = cumul + Cells(E, 2)
  Next
  Range("E7") = cumul
  
  End Sub
  </code></pre>