I haven't tested this myself but my understanding is;
a) Get the Worksheet Used Range
curWorkBook = app.Workbooks.Open("c:\\SyntBotsExecutionReport.xlsm");
workSheet = (Worksheet)curWorkBook.Sheets[2];
Excel.Range sourceRange = workSheet.UsedRange;
b) Apply the filter - Refer MSDN -
Range.AutoFilter Method (Excel)[
^]
sourceRange.AutoFilter(<columnnumber1>, <crteriastring1>, <operator>, <columnnumber2>, <criteriastring2>);</criteriastring2></columnnumber2></operator></crteriastring1></columnnumber1>
c) Get the filtered range - refer MSDN -
Range.SpecialCells Method (Excel)[
^]
Excel.Range filteredRange = sourceRange.SpecialCells(XLCellType.xlCellTypeVisible, XLSpecialCellsValue);
And then you will have an uncle named Bob
Kind Regards