PC Review


Reply
Thread Tools Rate Thread

Advanced filter vba

 
 
heyitsthechad@gmail.com
Guest
Posts: n/a
 
      15th Mar 2007
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.

 
Reply With Quote
 
 
 
 
merjet
Guest
Posts: n/a
 
      16th Mar 2007
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 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
Unique Filter Code / Advanced Filter Fester Microsoft Excel Discussion 1 30th Oct 2008 05:37 PM
How do I use advanced filter to filter for blank cells? =?Utf-8?B?TW9uaXF1ZQ==?= Microsoft Excel Misc 2 21st Mar 2006 06:43 PM
advanced filter won't allow me to filter on bracketed text (-456.2 =?Utf-8?B?THVjaWFub0c=?= Microsoft Excel Misc 2 7th Dec 2004 09:03 AM
automating data/filter /advanced filter copy Frank Microsoft Excel Worksheet Functions 2 7th Jan 2004 10:31 PM


Features
 

Advertising
 

Newsgroups
 


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