title: Add a macro in excel file
body: <p>i have the following macro </p>
  
  <pre><code>Sub test()
      Dim xsheet As Worksheet
      For Each xsheet In ThisWorkbook.Worksheets
          xsheet.Select
          With xsheet.UsedRange
              .Value = .Value
          End With
      Next xsheet      
  End Sub
  </code></pre>
  
  <p>Is there a way to add it to excel file and to execute it using c# ? </p>
  
  <p>Any help would be the most appreciated .</p>