Fully Dynamic List in Combobox of VBA

  Рет қаралды 212,390

PK: An Excel Expert

PK: An Excel Expert

Күн бұрын

Пікірлер: 138
@hansasare4078
@hansasare4078 2 жыл бұрын
Awesome videos...Your VBA tutorial videos is one of the best I have seen so far...well done and God bless you Sir
@PKAnExcelExpert
@PKAnExcelExpert 2 жыл бұрын
Thank you very much!
@arkd3um1988
@arkd3um1988 2 жыл бұрын
much respect for your effort to explain this example. Thank you. It is exaclty what i needed. Regards from Romania
@PKAnExcelExpert
@PKAnExcelExpert 2 жыл бұрын
So nice of you
@M4rt1nX
@M4rt1nX 5 жыл бұрын
Finally I found a video with instructions that really works.
@PKAnExcelExpert
@PKAnExcelExpert 5 жыл бұрын
Thanks for your valuable feedback
@alikilali2249
@alikilali2249 4 жыл бұрын
Me to 1 month to find it thank you man
@BINAYKUMAR-kn2ye
@BINAYKUMAR-kn2ye 4 жыл бұрын
Dear Sir, First I thankful to you for send Inventory Managment for practice , in that practice I serch verious Utube channel for serching dependent combobox but I spent 5 hours but not good for me then in meanwhile I look Fully Dynamic List in Combobox of VBA that I am surprise in few code I have done my problem with many facilities, for this I am highly oblize . thanks again.
@معلمسالم-ك2ج
@معلمسالم-ك2ج 4 жыл бұрын
I am an Arab and this video helped me a lot .. Thank you
@PKAnExcelExpert
@PKAnExcelExpert 4 жыл бұрын
Thanks for your valuable feedback
@choudhary8150
@choudhary8150 4 жыл бұрын
Thanks . This is the video what I exactly want.... really it's very helpful
@PKAnExcelExpert
@PKAnExcelExpert 4 жыл бұрын
Thanks for your valuable feedback
@anmarhakami
@anmarhakami 3 жыл бұрын
You are good 👍🏻 thanks 🙏
@PKAnExcelExpert
@PKAnExcelExpert 3 жыл бұрын
Thanks for your valuable feedback🙏
@tariqul199
@tariqul199 4 жыл бұрын
Sir, really you are great!
@PKAnExcelExpert
@PKAnExcelExpert 4 жыл бұрын
Thanks for your valuable feedback
@ardeshiraqayi9976
@ardeshiraqayi9976 3 жыл бұрын
Sooooooo useful... Tanks a lot brother ...
@paulocezardesouza50
@paulocezardesouza50 4 жыл бұрын
Another excellent class. Thank you.
@PKAnExcelExpert
@PKAnExcelExpert 4 жыл бұрын
Thanks for your valuable feedback
@marcioaffonso0
@marcioaffonso0 2 жыл бұрын
Thank you, Very informative
@PKAnExcelExpert
@PKAnExcelExpert 2 жыл бұрын
Most welcome
@mathsever34
@mathsever34 9 ай бұрын
Perfect! Is it possible to have a combobox as category 1, category 2, category 3?
@jintamolp.y.2230
@jintamolp.y.2230 3 жыл бұрын
Whether we can do it if multiple sheets are present
@Kutesac
@Kutesac 5 жыл бұрын
Great instructions...very understandable.
@PKAnExcelExpert
@PKAnExcelExpert 5 жыл бұрын
Thanks for your valuable feedback
@slimaneboudour8240
@slimaneboudour8240 2 жыл бұрын
Thank you for this video.
@PKAnExcelExpert
@PKAnExcelExpert 2 жыл бұрын
My pleasure!
@a.b.c.0.2
@a.b.c.0.2 4 жыл бұрын
Thanks for good video
@PKAnExcelExpert
@PKAnExcelExpert 4 жыл бұрын
Thanks for your valuable feedback
@RaviMishra-hh8dx
@RaviMishra-hh8dx Жыл бұрын
Thank you very much sir for this relevant video to my work can you plz teach us how to view data from excel sheet according to 3 or 4 combobox filter.
@chesterjackson4690
@chesterjackson4690 6 жыл бұрын
Great lesson. However, I continue to have a runtime error '1004'. The overall function works properly until I added in the code for clearing the fields. When I remove the code starting at 7:41 everything works great. I guess I will need to remove that existing combo box and add in a new one and resubmit the code. Overall....very helpful
@JGuitarJ24
@JGuitarJ24 5 жыл бұрын
Hi Chester, How did you fix this problem? I am facing this issue right now with the clear button and I do not know what to do. Thanks
@keyingong6728
@keyingong6728 3 жыл бұрын
Hi Chester, is the issue resolved? Do you mind to share the solution?
@LearningWhileHavingFun
@LearningWhileHavingFun 5 жыл бұрын
Hi An Excel Expert, i learned a lot and i am following your tutorials, just curious whats the formula because at 9:50 the video got blurry hope you can help me or any one can help me with this. ty
@alikilali2249
@alikilali2249 4 жыл бұрын
Thank you man for this video
@PKAnExcelExpert
@PKAnExcelExpert 4 жыл бұрын
Welcome
@TimHulse
@TimHulse 3 жыл бұрын
Nice work!
@PKAnExcelExpert
@PKAnExcelExpert 3 жыл бұрын
Thanks for your valuable feedback
@muhammadakif5951
@muhammadakif5951 3 жыл бұрын
Sir if I write the first letter of any month or year will the drop-down list show only those items that start with the letter I have entered?
@abdallahbelcaid3002
@abdallahbelcaid3002 4 жыл бұрын
Please answer me I got an error 1004 c=application.worksheetfunction,match(me.combobx1.value,sh.range("1:1"),0) geta an error saying that "unable to get the match property of the worksheet function class"
@tmatthew5373
@tmatthew5373 3 жыл бұрын
take out the ".worksheetfunction."; just using "application.Match". This changes the error type from 1004 to 13. Error 13 is a type mismatch. This happens because you declared variables as integers, but when the values are assigned/used, they may be Text. (Dim i As Integer. This later can change to a text in 'Me.ComboBox2.AddItem') As a work-around, add a 'On Error Resume Next' in the second part of the code Dim sh As Worksheet Set sh = ThisWorkbook.Sheets("Setup Table") Dim i As Integer Dim n As Integer On Error Resume Next n = Application.Match(Me.ComboBox1.Value, sh.Range("1:1"), 0) Me.ComboBox2.Clear For i = 2 To Application.CountA(sh.Cells(1, n).EntireColumn) Me.ComboBox2.AddItem sh.Cells(i, n).Value Next i End Sub
@alhassanmusah7242
@alhassanmusah7242 4 жыл бұрын
great work thanks
@PKAnExcelExpert
@PKAnExcelExpert 4 жыл бұрын
Thanks for your valuable feedback
@bharatprasad8450
@bharatprasad8450 4 жыл бұрын
Good lesson to me, Thank a lot
@PKAnExcelExpert
@PKAnExcelExpert 4 жыл бұрын
Thanks for your valuable feedback
@Ponder_The_Cosmos
@Ponder_The_Cosmos 4 жыл бұрын
Thanks so much for this tutorial. It worked almost perfectly for me, but in my second combobox, the last rows value for selected column does not show. Does anyone know how to fix this?
@crimcrow
@crimcrow 6 жыл бұрын
Thanks, Really helpfull :)
@PKAnExcelExpert
@PKAnExcelExpert 6 жыл бұрын
Thanks for your valuable feedback
@Aryan.Vivhaan0111
@Aryan.Vivhaan0111 6 жыл бұрын
This video is very useful but when I m using this in my existing user form its showing unable to get the match property of the worksheet function class. Independent data is showing in combobox but when I using submit button this time the error is coming .can u suggest me for the solution.
@Fazwaans
@Fazwaans 3 жыл бұрын
Thanks for sharing your knowledge with everyone, Can you kindly enplane make video how to add Columns manually, e.g if i just want to add Column D, g, or Z. thank you
@kailashsoni676
@kailashsoni676 2 жыл бұрын
Sir show row wise dynamically
@ardeshiraqayi9976
@ardeshiraqayi9976 3 жыл бұрын
Please help me on this: What about the ComboBox on the worksheet? How can I simply make a dynamic range and then populate the ComboBox with it? Without a For Loop , of course
@abdallahbelcaid3002
@abdallahbelcaid3002 4 жыл бұрын
Thank you so much ! and what about dynamic login form ?
@PKAnExcelExpert
@PKAnExcelExpert 4 жыл бұрын
Thanks for watching. Please watch below given video for login form: kzbin.info/www/bejne/pGisZmBsm89kobs
@abdallahbelcaid3002
@abdallahbelcaid3002 4 жыл бұрын
@@PKAnExcelExpert thank you sir
@abdallahbelcaid3002
@abdallahbelcaid3002 4 жыл бұрын
@@PKAnExcelExpert Sir I got an error in the function match what is the solution please help me is my final project ?
@Learner566
@Learner566 5 жыл бұрын
How to vaildation combobox value if when change the value by keypress
@Yorumcu63
@Yorumcu63 2 жыл бұрын
Nice Video
@sdesilva4728
@sdesilva4728 5 жыл бұрын
Thank you, it helped a lot...
@barisersoy9784
@barisersoy9784 5 жыл бұрын
Thank You!
@PKAnExcelExpert
@PKAnExcelExpert 5 жыл бұрын
Thanks for watching
@dashyi97
@dashyi97 6 жыл бұрын
Thank you for the very useful tutorial sir. May I ask how can I add a Clear button to the userform for the dynamic list in combobox? I seem to have an error with the Match property of the worksheet function when I use my usual code for Clear button. Thank you sir
@henokayele8497
@henokayele8497 4 жыл бұрын
wow your teaching is best! but i need some help of you how to code in vba not i worksheet this code please tell me you captured on worksheet but i want to code in vba.............eg:- combobox1 ("subject").........Dynamicaly in combobox2 = Biology.....physics.....etc
@keranicat2127
@keranicat2127 5 жыл бұрын
please help me "run time error 5" invalid procedure call or argument *** For i = 2 To Application.WorksheetFunction.CountA(sh.Cells("1,n").EntireColumn)
@daljeetsingh1231
@daljeetsingh1231 3 жыл бұрын
I have 2 Dropdown List with the same options (Included and Excluded) in different sheets. If I select " Included" in one dropdown list, it should also select "Included" on another dropdown list and vice versa. I am new in coding please help me out to crack this.
@vidyatutorials113
@vidyatutorials113 7 жыл бұрын
Sir please tell me best book for VBA for beginners
@marcosbertozzo3193
@marcosbertozzo3193 5 жыл бұрын
Thanks a lot!
@PKAnExcelExpert
@PKAnExcelExpert 5 жыл бұрын
Thanks for watching
@pietrogazzera5733
@pietrogazzera5733 6 жыл бұрын
Bravo!
@PKAnExcelExpert
@PKAnExcelExpert 6 жыл бұрын
Thanks for your valuable feedback
@ktamilarasan17
@ktamilarasan17 5 жыл бұрын
Thanks a lot!!!!!
@PKAnExcelExpert
@PKAnExcelExpert 5 жыл бұрын
Thanks for watching
@gautamgarde344
@gautamgarde344 4 жыл бұрын
Hello sir Sir please upload a video that's also contains the add items to dependent dropdown list.
@AamirSaeedTajalli
@AamirSaeedTajalli 5 жыл бұрын
hello, wornderful tutorial.. Love your command over Excel and VBA. I have one question. What, if i want to display the first item of the 2nd category list depending on the the main category chosen above? kindly explain.
@mjcomputershimatnagar
@mjcomputershimatnagar 4 жыл бұрын
Sir I want edit form by name search box
@TheNewLifeTech
@TheNewLifeTech 4 жыл бұрын
Thank you so much for this wonderful video, can I apply this my another userform, please guide me.
@SongsForSoul_ID-tr3cs
@SongsForSoul_ID-tr3cs 5 жыл бұрын
i use thi script,but when i input an error occur, can you help me?
@VijayKumar-zd7ou
@VijayKumar-zd7ou 6 жыл бұрын
Sir how to be same condition apply ActiveX control without userform how to be possible
@sameer_ansari5434
@sameer_ansari5434 6 жыл бұрын
Excellent work @PK: An Excel Expert, i want to extract data based on dependent drop down. i have prepared simmillar dash board using simple slicer, but i want to make a user form and extract data while i am gradually applying the filters with dependent dropdown. please help me with some guidance. an explaination would be more than i could ask. NIce work sir.
@MohAboAbdo
@MohAboAbdo 6 жыл бұрын
Thanks ... Thanks.
@PKAnExcelExpert
@PKAnExcelExpert 6 жыл бұрын
Thanks for watching
@Design360
@Design360 4 жыл бұрын
*_Dear Sir, I am Md. Alamgir Kabir from Bangladesh. Thank you so much for your valuable tutorial. It's the same as my requirements, but I have a small query, How to add a unique item to this Combobox. Please help me_*
@manyoeur
@manyoeur 6 жыл бұрын
Dear Sir, how can we code if we have more sub categories?
@alriyami09
@alriyami09 5 жыл бұрын
hi, friend, can you help me to design the data entry form for me how much your charges
@engrmamun59
@engrmamun59 4 жыл бұрын
I can help you during payment contact. (You can mail me : engrmamun66@gmail.com) with your requirement.
@fanueltomas2269
@fanueltomas2269 6 жыл бұрын
Very nice
@alializadeh8195
@alializadeh8195 2 жыл бұрын
Thanx
@PKAnExcelExpert
@PKAnExcelExpert 2 жыл бұрын
Most welcome
@clovissassine7947
@clovissassine7947 7 жыл бұрын
Friend, can we have something similar to that about having a plan for a call center where employees can schedule their breaks and lunch and personal? or do you have a link for such a video? appreciate your assistance, thank you.
@PKAnExcelExpert
@PKAnExcelExpert 7 жыл бұрын
Hi Clovis, I don't have such video ready as of now but I will definitely try to make such video very soon. Thanks for watching
@clovissassine7947
@clovissassine7947 7 жыл бұрын
thank you very much, hope to get a notification once it is done, i believe its beneficial for a lot of people as well, keep it up, your doing a great job!!!
@MohAboAbdo
@MohAboAbdo 6 жыл бұрын
Thanks ... Thanks ... Thanks ...
@hemendravakharia2502
@hemendravakharia2502 5 жыл бұрын
but after running the combo box how to enter data in excel sheet ???
@pablosel3857
@pablosel3857 3 жыл бұрын
You call a procedure that contains everything you want to do
@upgradetechnicalskills3392
@upgradetechnicalskills3392 6 жыл бұрын
Hi Good morning sir I have made one searchable drop down list. My question is if my data is X workbook and I want to create searchable drop down list in Y workbook. is it possible and how to do that? Can you help me on that
@PKAnExcelExpert
@PKAnExcelExpert 6 жыл бұрын
Hi Kurban, I will try to make such video very soon.
@123DZDZ
@123DZDZ 6 жыл бұрын
Hi PK, good job, but can you do the same and eliminate the duplicates , exp: if the month or the year is repeated twice or more, it won't be shown on the comboBox, Thanks
@surajbagkar9792
@surajbagkar9792 6 жыл бұрын
nice one
@PKAnExcelExpert
@PKAnExcelExpert 6 жыл бұрын
Thanks for your valuable feedback
@vonandrewronquillo5708
@vonandrewronquillo5708 6 жыл бұрын
What is abilabil?
@dursunn
@dursunn 2 жыл бұрын
how can I do this in python?
@hasanthidevendra7049
@hasanthidevendra7049 6 жыл бұрын
can yo give solution to show it on user form as list instead of showing it on excel sheet
@abdihassen9102
@abdihassen9102 6 жыл бұрын
unable to get the mach property of the WorksheetFunction class, how can I solve that please
@acespere
@acespere 6 жыл бұрын
how?? please.. anyone? followed above but encountered error.. help
@PKAnExcelExpert
@PKAnExcelExpert 6 жыл бұрын
Hi, Please send me your excel file along with the error snapshot on info@pk-anexcelexpert.com.
@Akash_with_GSD
@Akash_with_GSD 6 жыл бұрын
@@PKAnExcelExpert same problem
@tors-a4808
@tors-a4808 4 жыл бұрын
Great tutorlia. However my c=application.worksheetfunction,match(me.combobx1.value,sh.range("1:1"),0) geta an error saying that "unable to get the match property of the worksheet function class" I don't understand as I have completly copied your code.
@abdallahbelcaid3002
@abdallahbelcaid3002 4 жыл бұрын
Did you find the answer ?
@dhavaldaraji4
@dhavaldaraji4 3 жыл бұрын
I am also observed same error . please help me
@jamilurrahman4328
@jamilurrahman4328 6 жыл бұрын
Thanks nice
@PKAnExcelExpert
@PKAnExcelExpert 6 жыл бұрын
Thanks for your valuable feedback
@pankajhiralalpatel4454
@pankajhiralalpatel4454 5 жыл бұрын
Sir I have an excel sheet, column A has dates and column B to J has other data. I want to create a combobox which shows those months which first date to end date available in Column A . Thanks in advance Please help me
@AamirSaeedTajalli
@AamirSaeedTajalli 5 жыл бұрын
hi, did you get solution to this? can you plz explain what do you mean by "which shows those months which first date to end date available in Column A"
@mrtechguru341
@mrtechguru341 6 жыл бұрын
sir please tell me how to make Double dynamic list in Combobox with coding please sir reply kar na !
@abdihassen9102
@abdihassen9102 6 жыл бұрын
Thank you for your replay, it was my mistake
@LearningWhileHavingFun
@LearningWhileHavingFun 5 жыл бұрын
hi thank you so much great video im having a run time error with this code n = Application.WorksheetFunction.Match(Me.txtSupervisor.Value, sh.Range("1:1"), 0)
@dhavaldaraji4
@dhavaldaraji4 3 жыл бұрын
I have same problem
@vigneshwarank529
@vigneshwarank529 6 жыл бұрын
Well and good
@PKAnExcelExpert
@PKAnExcelExpert 6 жыл бұрын
Thanks for your valuable feedback
@ModernPindawale
@ModernPindawale 7 жыл бұрын
Sir excel main MISS expert person Kon hota hai. Or isme Kiya Kiya aata hai excel ka
@VijayKumar-zd7ou
@VijayKumar-zd7ou 6 жыл бұрын
Sir without combo box how to done
@michaelconnors9906
@michaelconnors9906 6 жыл бұрын
My range is in a column, not in a row. It begins in E8. I added a declartion or RNG as Range, Set rng = Range(Range("E8"), Range("E8").End(xlDown)) I kept Me.ComboBox1.Clear I rewrote the next line as For i = 8 To Application.WorksheetFunction.CountA(ActiveSheet.Rows(8)) I changed the 1 to a 5 in this line of code. Me.ComboBox1.AddItem sh.Cells(i, 5).Value Here's the full code. I hope it helps you set the range if it is other than 1:1 Private Sub UserForm_Activate() Dim sh As Worksheet, rng As Range Dim i As Integer Set sh = ThisWorkbook.Sheets("Sheet1") Set rng = Range(Range("E8"), Range("E8").End(xlDown)) Me.ComboBox1.Clear For i = 8 To Application.WorksheetFunction.CountA(ActiveSheet.Rows(8)) Me.ComboBox1.AddItem sh.Cells(i, 5).Value Next i End Sub
@bosmanpm
@bosmanpm 5 жыл бұрын
Hi. I used your changed code to my case. My range is also in column but start in B7. I changed yu code to: Private Sub UserForm_Activate() Dim sh As Worksheet, rng As Range Dim i As Integer Set sh = ThisWorkbook.Sheets("Urlopy") Set rng = Range(Range("b7"), Range("b7").End(xlDown)) Me.ComboBox1.Clear For i = 7 To Application.WorksheetFunction.CountA(ActiveSheet.Rows(7)) Me.ComboBox1.AddItem sh.Cells(i, 2).Value Next i all is fine, but I have more than 30 rows. This code shows me only 30 firsts rows. Last ten aren't visibility! How solved it? Any ideas? Ps. You have declared : rng As Range -> Set rng = Range(Range("b7"), Range("b7").End(xlDown)) Why? Where is it in solution?
@VijayKumar-zd7ou
@VijayKumar-zd7ou 6 жыл бұрын
Sir, can we will do this condition on sheet ActiveX control combo box on sheet without user form in excel please help and give me sample file on my email id
@redareda2872
@redareda2872 5 жыл бұрын
you re the bt
@AamirSaeedTajalli
@AamirSaeedTajalli 5 жыл бұрын
Seems, SIR dont like or dont get time to REPLY here :)
@PKAnExcelExpert
@PKAnExcelExpert 5 жыл бұрын
Hi Amir, sorry for the late reply. You can use listindex property of combobox. It starts from 0.
@AamirSaeedTajalli
@AamirSaeedTajalli 5 жыл бұрын
@@PKAnExcelExpert Thanks a lot dear. I tried it on form level but not working.
@AamirSaeedTajalli
@AamirSaeedTajalli 5 жыл бұрын
Boss, just now tried again. In excel at form level, i used code "ComboBox17.Text = ComboBox17.ListIndex(0) and getting "Type mismatch error" Data is populated absolutely correct. Just want to select and display first item in list of combobox17
@mrtechguru341
@mrtechguru341 6 жыл бұрын
Plz bro reply me
@MrPACO0508
@MrPACO0508 6 жыл бұрын
Thank you for the very useful tutorial sir. May I ask how can I add a Clear button to the userform for the dynamic list in combobox? I seem to have an error with the Match property of the worksheet function when I use my usual code for Clear button. Thank you sir
@nileshpawar7436
@nileshpawar7436 6 жыл бұрын
Same here... Getting error same error.. compile error
@mhareandeancojuangco9734
@mhareandeancojuangco9734 4 жыл бұрын
Same here..any resolution please
@MohAboAbdo
@MohAboAbdo 4 жыл бұрын
Thanks... Thanks... Thanks.
@PKAnExcelExpert
@PKAnExcelExpert 4 жыл бұрын
Thanks for watching
Combobox In VBA User form
15:11
PK: An Excel Expert
Рет қаралды 131 М.
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН
Dependent Combo Boxes with Advanced Filter - Excel VBA
10:48
Computergaga
Рет қаралды 54 М.
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 1 МЛН
Excel ActiveX Combo Box to Select Worksheets with VBA
9:56
Leila Gharani
Рет қаралды 135 М.
Create SMART Drop Down Lists in Excel (with Data Validation)
15:42
Leila Gharani
Рет қаралды 921 М.
How to populate comboBox and get value in textbox using Excel VBA
4:52
Programming for Everybody
Рет қаралды 33 М.
Dependent Drop Down List in Excel Tutorial
11:10
Kevin Stratvert
Рет қаралды 652 М.
Excel Combobox Fill From Table Userform Excel VBA
7:35
razakmcr
Рет қаралды 20 М.
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.