I have to read an excel file through a COM interop. I search for a specific string using this:
this.sheet = (Excel.Worksheet)this.excelApp.Workbook.Sheets.Ite
Okay, after some sleep i have found the answer.
int startColumn = Header.Cells.Column;
int startRow = header.Cells.Row + 1;
Excel.Range startCell = this.sheet.Cells[startRow, startColumn];
int endColumn = startColumn + 1;
int endRow = 65536;
Excel.Range endCell = this.sheet.Cells[endRow, endColumn];
Excel.Range myRange = this.sheet.Range[startCell, endCell];