Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Advanced Filtering on an inactive sheet

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Advanced Filtering on an inactive sheet

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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Advanced Filtering on an inactive sheet

On Apr 20, 3:48 pm, Spencer 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
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
Advanced Filtering Browny Excel Discussion (Misc queries) 4 September 5th 08 02:30 PM
advanced filtering Lola Excel Discussion (Misc queries) 1 February 27th 08 08:16 PM
Advanced filtering mutie Excel Worksheet Functions 8 July 2nd 06 03:28 PM
Advanced Filtering ksp Excel Programming 6 November 25th 05 07:15 AM
advanced filtering jiwolf Excel Worksheet Functions 2 October 19th 05 09:43 PM


All times are GMT +1. The time now is 07:14 AM.

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

About Us

"It's about Microsoft Excel"