title: EPPlus To Read 1st Column Of Excel Into Array
body: <p>Use <code>OpenFileDialog</code>with EPPlus.  I get a compile error of: </p>
  
  <pre><code>The name 'sheet' does not exist in the current context
  </code></pre>
  
  <p>Now, the obvious issue is how do I associate the selected Excel file with my EPPPlus &amp; 2 what do I do to remove the error above?</p>
  
  <pre><code>using OfficeOpenXml;
  using OfficeOpenXml.Drawing;
  
  private void btn_ReadExcelToArray_Click(object sender, EventArgs e)
  {
    fd.Filter = "Excel Files|*.xlsx";
    fd.InitialDirectory = @"C:\";
    if (fd.ShowDialog() == DialogResult.OK)
    {          
      var columnimport = sheet.Cells["A2:A"];
      foreach (var cell in columnimport)
      {
          var column1CellValue = cell.GetValue&lt;string&gt;();
      }
    }
  }
  </code></pre>