title: .NET C# - Importing Excel File - Sheet Name!
body: <p>I'm using the NPOI Library to import some data from an excel sheet to my database. </p>
  
  <p>One early issue I'm curious about, is typically, to begin, you would have something like this:</p>
  
  <p><strong>snippet</strong></p>
  
  <pre><code> using (FileStream fs = File.Open(filename, FileMode.Open, FileAccess.Read))
                  {
                      HSSFWorkbook templateWorkbook = new HSSFWorkbook(fs);
                      HSSFSheet sheet = templateWorkbook.GetSheet("Sales");
  </code></pre>
  
  <p>My query is, what happens when the name of the worksheet is different each time, e.g. I plan to import sales data, and the sheets within the workbooks I receive from suppliers are titled by date. </p>
  
  <p>Is there any way that you can specify GetSheet(); to just get the first sheet in the workbook?</p>
  
  <p>Any pointers would be much appreciated,</p>
  
  <p>thanks guys :)</p>