Hi
I've been using the AutoFilter() method with no problem so far. but i wasnt able to mark or get the range of the filtered rows, to count/copy/delete them.
I've seen many posts on this issue with VBA, but non for C#.
After filtering, i tried to get the range by any of those lines
range = ws.UsedRange.CurrentRegion.SpecialCells(Excel.XlCellType.xlCellTypeVisible, missing);
range = ws.AutoFilter.Range.SpecialCells(Excel.XlCellType.xlCellTypeVisible, missing);
range = ws.Cells.SpecialCells(Excel.XlCellType.xlCellTypeVisible, missing);
and i have even tried other ways that i dont even remember. after marking the range i tried to count the rows by doing:
range.Rows.Count
and in each case, i got the total number of lines of the sheet, sometimes i got 65536 (office 2003) and sometimes just 1 but surly not the number of rows that i filtered.
Any clue?
I must use it with office 2003 with Object Library 11.
Thanks!