Create Dependent Combo Boxes on a Userform - Excel VBA

  Рет қаралды 57,752

Computergaga

Computergaga

Күн бұрын

Пікірлер: 67
@essamelrifai4551
@essamelrifai4551 2 жыл бұрын
Thanks a lot
@Computergaga
@Computergaga 2 жыл бұрын
You're welcome.
@jeni448
@jeni448 2 жыл бұрын
Thank you it works!
@Computergaga
@Computergaga 2 жыл бұрын
Great! You're welcome.
@yael9614
@yael9614 2 жыл бұрын
Thank you!!!
@Computergaga
@Computergaga 2 жыл бұрын
You're welcome!
@LordBransty
@LordBransty 6 ай бұрын
I'm losing count of how many times you keep coming to my rescue. Thank you so much for this!
@Computergaga
@Computergaga 6 ай бұрын
You are so welcome!
@suhailabahrom.4560
@suhailabahrom.4560 10 ай бұрын
If the list of item of second combobox is not in the excel what is the correct way to write the command in vba to list the item
@ronaldodoetargbeh5158
@ronaldodoetargbeh5158 Жыл бұрын
Thanks for this tutorial; nice. However, how can you reference this code to a sheet if you have multiple sheets (e.g. sheet1, sheet2. sheet3, etc.)? Thanks for your help.
@stevennye5075
@stevennye5075 4 жыл бұрын
Excellent!
@Computergaga
@Computergaga 4 жыл бұрын
Thank you, Steven.
@MohAboAbdo
@MohAboAbdo 4 жыл бұрын
Thank you so mutch.
@Computergaga
@Computergaga 4 жыл бұрын
My pleasure.
@markanthonydizon50
@markanthonydizon50 2 жыл бұрын
what if I want to pull out data from different sheet?
@Computergaga
@Computergaga 2 жыл бұрын
The City lists are set up as range names, so they will pull from another sheet.
@wazy1852
@wazy1852 2 жыл бұрын
How can I do this but inside the Excel sheet using the Combobox tool, not using the userform? thanks
@sircorn4248
@sircorn4248 4 жыл бұрын
Thank you, that was an eye opener for me.
@Computergaga
@Computergaga 4 жыл бұрын
Fantastic! Great to hear.
@chocasaclang
@chocasaclang 4 жыл бұрын
Thanks for the video, just wanted to ask if there's a way to reset combobox 2 when combobox 1 is changed again? Here's the scenario im getting: i choose country germany the first time then i see the cities, but if i go back and change the country, it keeps the german cities on the city dropbox unless i close the userform and start over.
@legros94
@legros94 4 жыл бұрын
Merci pour le tuto
@Computergaga
@Computergaga 4 жыл бұрын
You're welcome Hiro.
@ismailismaili0071
@ismailismaili0071 6 жыл бұрын
Awesome thanks sir
@Computergaga
@Computergaga 6 жыл бұрын
You're welcome Ismail.
@SaniaGestion82
@SaniaGestion82 4 жыл бұрын
That's wath I'm looking for to finalize my formular Thanks a lot Dear
@Computergaga
@Computergaga 4 жыл бұрын
You're welcome. Thank you.
@litmol
@litmol 5 жыл бұрын
Thanks for the code and the detailed explanations - it’s highly useful. I tried taking your code one step further and failed. I would like to use three ComboBox in the following manner: the third ComboBox should present values (Names) based on user’s selection in the first two ComboBox (Company and Division). Could you kindly advise how to amend your code to make it work with three ComboBox? Thank you in advance.
@Computergaga
@Computergaga 5 жыл бұрын
Thanks Tal, you could set up named ranges for each company and division combination. Then maybe instead of Select Case, is an If cboCompany.value = ?? And cboDivision.Value = ?? then approach. Using the row source as in the video.
@litmol
@litmol 5 жыл бұрын
Thnaks for the tip. I'll give it a try
@litmol
@litmol 5 жыл бұрын
I tried and it works! Thanks again for the useful advice
@hamassa55
@hamassa55 5 жыл бұрын
Tal Shani Can you share the final code with three combobox
@litmol
@litmol 5 жыл бұрын
@@hamassa55Sure. I don't have the code on this computer, so I'll post it tomorrow. It's basically very simple - combine the content to the first two comboboxes to one string and then use an If statement to populated the third combobox based on the value of the string. If that wasn't clear, please wait till tomorrow morning.
@AdilsonVCasula
@AdilsonVCasula 6 жыл бұрын
That was so simple. Great done
@Computergaga
@Computergaga 6 жыл бұрын
Thank you Adilson.
@sachinbajaj5137
@sachinbajaj5137 4 жыл бұрын
This is super helpful ! This is what i was looking for ! Thanks a Ton !
@Computergaga
@Computergaga 4 жыл бұрын
You're very welcome. Thank you.
@maherzeetawi508
@maherzeetawi508 3 жыл бұрын
I tried it was perfect.. But after trying that with button several times then closed file reopened the file it was not working even made new file & followed the same steps but unfortunately not working... Hopefully can get help... Thank you
@vigneshwarank529
@vigneshwarank529 6 жыл бұрын
Awesome content thanks for sharing
@Computergaga
@Computergaga 6 жыл бұрын
You're welcome, thank you Vigneshwaran.
@jochenp.6137
@jochenp.6137 6 жыл бұрын
Love it, thank you!
@Computergaga
@Computergaga 6 жыл бұрын
You're very welcome Jochen.
@nextstep2239
@nextstep2239 3 жыл бұрын
I'm getting compile Error
@StephenE-mx5fe
@StephenE-mx5fe 6 жыл бұрын
Just what I needed thank you!
@Computergaga
@Computergaga 6 жыл бұрын
No problem Stephen.
@cire411
@cire411 5 жыл бұрын
How are you sourcing the country CBO?
@Computergaga
@Computergaga 5 жыл бұрын
The countries are sourced from A2:A8
@hamassa55
@hamassa55 5 жыл бұрын
I followed all the instruction and its not showing data in the drop box when I try to run it
@dannywoods5216
@dannywoods5216 5 жыл бұрын
Mine is not working either. Try this one: kzbin.info/www/bejne/j3qopZKJa5p6qLc
@VijayKumar-zd7ou
@VijayKumar-zd7ou 5 жыл бұрын
Sir, can we do this only combo box without user form
@Computergaga
@Computergaga 5 жыл бұрын
Yes this could be done of a worksheet too.
@VijayKumar-zd7ou
@VijayKumar-zd7ou 5 жыл бұрын
@@Computergaga please send me sample excel on my mail id please help me
@VijayKumar-zd7ou
@VijayKumar-zd7ou 5 жыл бұрын
I can't do this apply on ActiveX Control combo box on sheets
@nextstep2239
@nextstep2239 3 жыл бұрын
Error invalid qualifier
@stevenojeda6513
@stevenojeda6513 6 жыл бұрын
How would you do this if there is three combo boxes instead of two? The code is magnificent but I can't see how to apply it to 3. I have five combo boxes that are dependent but hopefully if you show me how to do three I can build the rest.
@MyMomSayNoDota
@MyMomSayNoDota 4 жыл бұрын
i dunno why, but i hate to set data without table and use SELECT in the vba code.
@gun707
@gun707 3 жыл бұрын
nice approach, however, try using 1 line code without the need of typing all names again: private sub cbocountry_change() cbocity.value = "" 'clears the combobox first when country is changed cbocity.rowsource = cbocountry.value 'replaces manual name entry end sub
@disposable_hero1725
@disposable_hero1725 6 жыл бұрын
Auckland, New Zealand, Represent!! LOL
@tomo.pomo1
@tomo.pomo1 3 жыл бұрын
👍👍👍👍
@petrusedwardjr.2598
@petrusedwardjr.2598 5 жыл бұрын
Why would you start off the video not showing how u got the two combo boxes in Visual Basic. When u press Visual Basic two combo boxes don’t magically appear
@Computergaga
@Computergaga 5 жыл бұрын
Sorry about that but I cannot start all videos from the beginning. I would need some prepared data before I show the formulas, chart or in this case dependent combo boxes.
@kimikimkimkimkimkim8125
@kimikimkimkimkimkim8125 6 жыл бұрын
How to do this on Access?
@Computergaga
@Computergaga 6 жыл бұрын
Sorry I do not work with Access anymore. I'm sure the process would be similar with VBA.
@dhirendrakumar1656
@dhirendrakumar1656 6 жыл бұрын
How did you do that. It is not working on my userform of Excel vba. Will you please help me? Give me your email ID.
@VijayKumar-zd7ou
@VijayKumar-zd7ou 5 жыл бұрын
Sir please provide me ur email id I send to u sample file what I want
@Computergaga
@Computergaga 5 жыл бұрын
Sorry Vijay I can't help you with this at the moment. Combo Boxes added to a sheet have a name. You should be able to reference this like in the video.
Dependent Combo Boxes with Advanced Filter - Excel VBA
10:48
Computergaga
Рет қаралды 54 М.
Creating Dependent Combo Boxes in Excel User Form with VBA
22:28
Dinesh Kumar Takyar
Рет қаралды 109 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 46 МЛН
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 32 МЛН
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,6 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 21 МЛН
VBA Tutorial for Dependent Combo Boxes on UserForm - VBA Example
15:57
Excel Destination
Рет қаралды 21 М.
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 796 М.
Multiple Dependent Drop-Down List in Excel | NEW Simple Method | Works with multiple rows
15:03
Excel VBA Forms Part 6 - ComboBox Controls
41:03
WiseOwlTutorials
Рет қаралды 62 М.
How to Easily Create an Data Entry Form in Excel | No VBA
22:30
Jopa Excel
Рет қаралды 42 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 46 МЛН