title: Open Copy of Excel Based on Template
body: <p>I have a WinForms app written in C# that uses the following code to open an Excel Template, prior to exporting data from a SQL database into the Worksheets of the Template.</p>
  
  <pre><code>Microsoft.Office.Interop.Excel.Application oXL = new Microsoft.Office.Interop.Excel.Application();
  oXL.Visible = true;
  oXL.DisplayAlerts = false;
  Microsoft.Office.Interop.Excel.Workbook mWorkBook = oXL.Workbooks.Open(path, 0, false, 5, "", "", false, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "", true, false, 0, true, false, false);
  Excel.Worksheet mWorkSheet = mWorkBook.Worksheets["Invoice"];
  </code></pre>
  
  <p>However, this code actually opens the Template itself, so that any data exported from SQL into the workbook, is saved to the Template.  What I want is to programmatically open a copy of the template in the same way this works when you double click a template directly in Windows Explorer and a copy is automatically created, without the original Template being touched.</p>
  
  <p>How can I do this programmatically?</p>