title: Writing Excel formula using vb.net
body: <p>I want to write a formula to SUM from column B4 to M4, this should be done using vb.net programming. </p>
  
  <p>I tried using the following stuff:</p>
  
  <pre><code>oXLWsheet.Range(4, 14).Formula = "=SUM(oXLWsheet!$B$4:M$4)" 
                                   "=SUM(B4:M4)" 
                                   "=SUM(B4,C4,D4,E4,F4,G4,H4,I4,J4,K4,L4,M4)"
  </code></pre>
  
  <p>Nothing is working for me. I'm getting the following error when I run the code:</p>
  
  <p><code>"Exception from HRESULT: 0x800A03EC".</code></p>