title: Creating a new excel workbook
body: <p>Can someone please help me with the following code:</p>
  
  <pre><code>Dim NewOutputFile As Workbook
  Set NewOutputFile = Workbooks.Add(FileName &amp; ".xls")
  </code></pre>
  
  <p>where <code>FileName = "C:\Documents and Settings\me\My Documents\file.xls"</code></p>
  
  <p>I want to create a new workbook dynamically and then add new tabs:</p>
  
  <pre><code>NewOutputFile.Sheets.Add ("New tab")
  </code></pre>
  
  <p>EDIT when I say "workbook" I mean a new excel file</p>