PC Review


Reply
Thread Tools Rate Thread

Advanced Filtering on an inactive sheet

 
 
=?Utf-8?B?U3BlbmNlcg==?=
Guest
Posts: n/a
 
      20th Apr 2007
i have a sheet that contains a database of products. Range("Products"). The
criteria range is above it ("FilterCriteria"). This sheet is not hidden, but
is not active. i have a userform with a combobox to choose a filter criteria
for the range. For some reason, when the sheet is not active, the filtering
does not work. so does the sheet need to be active or is there a workaround?
thanks.
 
Reply With Quote
 
 
 
 
merjet
Guest
Posts: n/a
 
      20th Apr 2007
Yes, there are work-arounds. I believe it would help to know what you
want to do with the filtered data before suggesting one.

Hth,
Merjet


 
Reply With Quote
 
rgablejr@gmail.com
Guest
Posts: n/a
 
      23rd Apr 2007
On Apr 20, 3:48 pm, Spencer <Spen...@discussions.microsoft.com> wrote:
> i have a sheet that contains a database of products. Range("Products"). The
> criteria range is above it ("FilterCriteria"). This sheet is not hidden, but
> is not active. i have a userform with a combobox to choose a filter criteria
> for the range. For some reason, when the sheet is not active, the filtering
> does not work. so does the sheet need to be active or is there a workaround?
> thanks.


Good evening Spencer,
You'll want to ensure the appropriate range names are used in the
advanced filter instead of cell references. For example,

Range("Products").AdvancedFilter Action:=xlFilterInPlace,
CriteriaRange:= Range("FilterCriteria"), Unique:=False

Using this technique, you will not have to select the worksheet
containing the database/criteria for the filter to work correctly.

Have a good weekend,

Ray R. Gable, Jr.

 
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
Re: Advanced data filtering on different sheet Nigel Microsoft Excel Programming 1 10th Feb 2009 10:12 AM
Advanced Filtering Browny Microsoft Excel Misc 4 5th Sep 2008 02:30 PM
To hard-code or not for filtering out inactive records Ronald S. Cook Microsoft C# .NET 3 8th Oct 2007 05:42 PM
advanced filtering jim.davis@marriott.com Microsoft Excel Worksheet Functions 5 18th Jun 2004 09:24 PM
"More Advanced" button in Advanced Find is inactive SAM Microsoft Outlook 0 26th Dec 2003 08:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:24 AM.