LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Auto filter not working

hello

i am not able to achive auto filter. i am pasting the code below

private void FilterReport()
{
string bookPath = @"D:\Window Crawler\Test Data
\PatchMatrix.xls";
Excel.Workbook _repbook = OpenExcelWorkbook(bookPath);
Excel.Worksheet _shtrep = (Excel.Worksheet)
_repbook.ActiveSheet;

//_shtrep.AutoFilterMode = true;
_shtrep.EnableAutoFilter = true;

Excel.Range Rngrep = _shtrep.get_Range("E1",
Type.Missing);
Rngrep.Select();
Rngrep.AutoFilter(1, "<",
Excel.XlAutoFilterOperator.xlAnd,Type.Missing,fals e);
}

it gives error : AutoFilter method of Range class failed

kindly help

Thanks
Shantanu
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Filter not working? Don Excel Discussion (Misc queries) 1 August 19th 08 06:10 PM
auto filter not working Katie Excel Worksheet Functions 2 August 23rd 07 11:41 AM
Auto Filter not working doublew Excel Discussion (Misc queries) 2 April 20th 07 06:38 PM
auto filter not working [email protected] Excel Discussion (Misc queries) 3 June 6th 06 12:16 AM
Auto Filter Not working beata Excel Discussion (Misc queries) 2 May 4th 06 02:11 PM


All times are GMT +1. The time now is 10:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"