PC Review


Reply
Thread Tools Rate Thread

clearing an advanced filter

 
 
dcorey@airnow.com
Guest
Posts: n/a
 
      27th Jun 2007
I'm new to xl programming and need to know how to clear an advanced
filter programatically.


I'm applying a filter within the program to a named range, but I can't
clear the filter and redisplay all the data. If I use
activesheet.showalldata, it works if the range is filtered, but
generates an error if the range is already completely displayed.

Thanks

 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      27th Jun 2007
If ActiveSheet.FilterMode Then ActiveSheet.ShowAllData

--
Jim
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
| I'm new to xl programming and need to know how to clear an advanced
| filter programatically.
|
|
| I'm applying a filter within the program to a named range, but I can't
| clear the filter and redisplay all the data. If I use
| activesheet.showalldata, it works if the range is filtered, but
| generates an error if the range is already completely displayed.
|
| Thanks
|


 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      27th Jun 2007
If activesheet.Filtermode then
activesheet.showalldata
End if

--
Regards,
Tom Ogilvy

"(E-Mail Removed)" wrote:

> I'm new to xl programming and need to know how to clear an advanced
> filter programatically.
>
>
> I'm applying a filter within the program to a named range, but I can't
> clear the filter and redisplay all the data. If I use
> activesheet.showalldata, it works if the range is filtered, but
> generates an error if the range is already completely displayed.
>
> Thanks
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unique Filter Code / Advanced Filter Fester Microsoft Excel Programming 1 30th Oct 2008 05:37 PM
Clearing search items in advanced find =?Utf-8?B?Sm1hdHRoMzU=?= Microsoft Outlook Discussion 1 24th Aug 2006 02:47 AM
How prevent Advanced Filter Sort from self-clearing on Form? MHenry Microsoft Access Forms 0 30th Jun 2006 11:54 PM
automating data/filter /advanced filter copy Frank Microsoft Excel Worksheet Functions 2 7th Jan 2004 10:31 PM
Clearing the search box in Advanced Find =?Utf-8?B?TWF4?= Microsoft Outlook Discussion 1 26th Oct 2003 09:13 AM


Features
 

Advertising
 

Newsgroups
 


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