PC Review


Reply
Thread Tools Rate Thread

Code to determine if data is filtered

 
 
excel@shoenfeltconsulting.com
Guest
Posts: n/a
 
      30th Jul 2007
What code could I use to show all rows in the data filtering, IF data
filtering is on. I tried,
ActiveSheet.ShowAllData

but then it bombs if nothing is already filtered.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBCdW5keQ==?=
Guest
Posts: n/a
 
      30th Jul 2007
Several ways to check for filter, but to take yours to the next level
On Error Resume Next
ActiveSheet.ShowAllData
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"(E-Mail Removed)" wrote:

> What code could I use to show all rows in the data filtering, IF data
> filtering is on. I tried,
> ActiveSheet.ShowAllData
>
> but then it bombs if nothing is already filtered.
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      30th Jul 2007
With activesheet
If .FilterMode Then
.ShowAllData
End If
end with

or just ignore the error:

on error resume next
ActiveSheet.ShowAllData
on error goto 0



"(E-Mail Removed)" wrote:
>
> What code could I use to show all rows in the data filtering, IF data
> filtering is on. I tried,
> ActiveSheet.ShowAllData
>
> but then it bombs if nothing is already filtered.


--

Dave Peterson
 
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
Neat code for pasting filtered data to a separate worksheet JT Microsoft Excel Programming 10 20th Aug 2010 10:55 PM
Modify RDB's Copy filtered data code to loop through multiple shee Jules Microsoft Excel Programming 3 25th Feb 2010 07:26 PM
VB Code to determine if a Column has data cpremo Microsoft Excel Programming 0 25th Jul 2007 02:45 AM
Formula to determine row of hi value filtered column rgarber50 Microsoft Excel Misc 0 4th Sep 2005 10:27 PM
Determine Frequency in Filtered List Michael Microsoft Excel Worksheet Functions 3 10th Feb 2005 07:57 PM


Features
 

Advertising
 

Newsgroups
 


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