• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Dynamic validation tables (drop lists) - advanced

T. Cauwe

New Member
Dear,

I've been using dynamic drop down validation lists for a while and I have been strungling with the fact that the list length is fixed and scrolling through long list is annoying and time consuming.
Using a form object releases me from the fixed list boundary and allows me to type into the list and show only the matches to what has been typed. This is quite more userfriendly.

I tried to use the form list objects to avoid this problems, but I'm strungling quite hard after te first category is selected, to generate the list within the form object that doesn't seem to accept the indirect function.

Any solution to help me out. See example below.

Thanks

Thierry
 

Attachments

  • example.xlsm
    22.6 KB · Views: 6
Hi Thierry ,

Try this :
Code:
Private Sub ComboBox1_Change()
            Me.Combobox2.Text = ""
            Me.ComboBox2.ListFillRange = Range(Me.ComboBox1.Text).Address
End Sub
Narayan
 
Last edited:
Hi Thierry ,

Try this :
Code:
Private Sub ComboBox1_Change()
            Me.Combobox2.Text = ""
            Me.ComboBox2.ListFillRange = Range(Me.ComboBox1.Text).Address
End Sub
Narayan

And what to do if you have an excel with e.g. with the dropdownlists. Is there an easier way to make it up instead of having to vba each combobox separately?

Thanks,

Thierry
 
ciao vedi se va bene, e confermare con "Enter"

scusate l'inglese

By Sal
 

Attachments

  • Menu a tendina Multi2.xls
    81.5 KB · Views: 5
ciao vedi se va bene, e confermare con "Enter"

scusate l'inglese

By Sal

Dear,

Seems to work fine, but looks quite complicated in vba. Will have to check it out in details.
How can I copy additional lines on the bottom, to add additional lines on the bottom? Do I only need to change the range in the vba code?

Thanks

Thierry
 
Hello, You Just change the range for each column:

This is to clean

Code:
If Not Intersect(Target, [f1]) Is Nothing Then eNo: Range("B3:Exx").ClearContents: GoTo 10

this for each column where xx = last row
Code:
If Not Intersect(Target, [b3:bxx]) Is Nothing Then

By Sal
 
Back
Top