title: How to get the 'first' sheet in OOXML with C# and the SDK?
body: <p>SO! :) Simple question -- it's probably been asked, but I could not find it.
  I am retrieving data from an XLSX using the Open XML SDK and C#.
  I want to get the "first" sheet (as in the first one you would see in Excel), but when I use...</p>
  
  <pre><code>WorkbookPart wbPart = workBook.WorkbookPart;
  //Now let's find the dimension of the first worksheet 
  string sheetArea = wbPart.WorksheetParts.First().Worksheet.SheetDimension.Reference.Value;
  </code></pre>
  
  <p>Unfortunately, in a brand-new XLSX this pulled "Sheet3" instead of "Sheet1". I do not know the sheet name ahead of time nor can I force the user to submit a workbook with only one sheet or specify sheet name. My present requirements are to grab the first sheet.</p>
  
  <p>Can someone please help? :)</p>
  
  <p>EDIT: I figured it out! But I can't answer my own question for 7 hours, so...</p>
  
  <p>I found this by digging through answers on this other SO question:</p>
  
  <p><a href="https://stackoverflow.com/questions/527028/open-xml-sdk-2-0-how-to-update-a-cell-in-a-spreadsheet">Open XML SDK 2.0 - how to update a cell in a spreadsheet?</a></p>
  
  <p>In essence, a working example might be this : </p>
  
  <pre><code>(wbPart.GetPartById(wbPart.Workbook.Sheets.Elements&lt;Sheet&gt;().First().Id.Value) as WorksheetPart).Worksheet.SheetDimension.Reference.Value
  </code></pre>