Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Advanced filter vba

Hello,
I have two worksheets. The first is a user screen that allows the
user to select from multiple combo boxes criteria for shipments.
These combo boxes are dependant on the previous combo box as to what
gets populated in them. The second screen screen contains the data
which fills these. After the last column of data unique values from
the first column are generated with a worksheet change function. I
would like to continue this process for the next list based on the
uniques in the first one.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
Range(Range("A4"), Range("A4").End(xlDown)).AdvancedFilter _
Action:=xlFilterCopy, CopyToRange:=Range("AE4"), Unique:=True
ActiveWorkbook.Names.Add Name:="Ulist", RefersTo:="=" & _
Range(Range("AE5"), Range("AE5").End(xlDown)).Address
End If
End Sub

The dynamic range "Ulist" fills the first combo box like a charm. I
should be able to simply copy paste the code above for column 2,
rename the ranges, and get my uniques to fill that second combo box,
but I am missing one line of code that should only populate that list
with Uniques from column 2 based on uniques from column one. I cant
figure out the compound filter I am trying to accomplish.

Thank you for any help.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Advanced filter vba

Regarding the second list, I can interpret "unique" in two ways. I
believe it would help if you provide an example of the pre-filtered
and post-filtered data.

Hth,
Merjet


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 Filter - filter rows < jaws4518 Excel Discussion (Misc queries) 3 November 1st 06 05:48 PM
Why won't advanced filter return filter results? jaws4518 Excel Worksheet Functions 5 September 12th 06 06:11 PM
How do I use advanced filter to filter for blank cells? Monique Excel Discussion (Misc queries) 2 March 21st 06 06:43 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM
advanced filter won't allow me to filter on bracketed text (-456.2 LucianoG Excel Discussion (Misc queries) 1 December 6th 04 08:38 PM


All times are GMT +1. The time now is 12:11 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"