title: How to set an open excel file as a Workbook object in VBA
body: <p>I need to set an excel file that is already open on the computer as the workbook object.</p>
  
  <pre><code>Dim wb As Workbook
  Dim sh As Worksheet
  
  Set wb = *the open excel file*
  Set sh = wb.Worksheets("FlatFile-FichierPlat")
  </code></pre>