title: C# how to iterate over excel columns
body: <p>I want to get a specific column of an excel sheet and then iterate through it's cells. I want it to look something like this:</p>
  
  <pre><code>Excel.Workbook workbook = app.Workbooks.Open(svDropPath);
  Excel.Worksheet xlWorkSheet = (Excel.Worksheet)workbook.Sheets["Sheet Name"];
  var col = xlWorkSheet.UsedRange.Columns["C:C", Type.Missing]; // I want the 3rd column
  foreach(Cell c in col)
  ....
  </code></pre>
  
  <p>How do I actually make this foreach loop?</p>