How to Fill Comboboxes (DropDowns) In Userforms or Worksheets - BOTH WAYS! Excel VBA Is Fun

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ต.ค. 2024

ความคิดเห็น • 61

  • @caseykellum3046
    @caseykellum3046 6 ปีที่แล้ว

    Although you are a little fast (but that is what the pause button is for, right) THANK YOU does not even cover how I am feeling so grateful at the moment. I have watched probably 20 different tutorials today, and yours is the only one that has gotten my anywhere. Thank you for spending the time in making this video.

  • @ExcelVbaIsFun
    @ExcelVbaIsFun  11 ปีที่แล้ว

    Yes, Amey, I have an other video teaching on the dynamic ranges, but in this I wanted to get right into how one fills the comboboxes. Thanks! Oh and can't wait to see your projects. Have a great one!! Dan

  • @Ema0404
    @Ema0404 9 ปีที่แล้ว

    Never learned so much staff about Excel in 15 min! Amazing. Thx you a lot

  • @princess_riee
    @princess_riee 4 ปีที่แล้ว

    Thanks so much Dan for uploading this! Super helpful for a newbie like me!!!

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  4 ปีที่แล้ว

      Hi Adrienne Hong, You're so welcome!

  • @ameydabholkar97
    @ameydabholkar97 11 ปีที่แล้ว

    Thanks, Dan , it was the same thing which I want to tell you and even we can create an expandable range by first creating dynamic name range through offset function and then adding row source into it. I have also done so many projects in excel using vba and shortly I am going to open my youtube channel . I will inform all things about that later. Please do watch. Thanks again

  • @clearlythisismyactualrealh4867
    @clearlythisismyactualrealh4867 9 ปีที่แล้ว +1

    It is possible to do this without using a macro to populate the drop down menus, though it does take up some of the cells in the spreadsheet. For the example try entering the following formulae:
    C2 : =IF(B2=TRUE,1,0)
    D2: =COUNTIF($C$2:C2,1)
    E2: =A2
    F2: =1
    G2: =IFERROR((VLOOKUP(F2,D:E,2,FALSE)),"")
    Then hilight C2 to G2 and copy these 5 columns down. Ensuring that column F now shows 1,2,3,4,5...
    Set column G as the named range and tie this to the combo box. The items shown in the named range will only be those that have a True status
    Replace the word TRUE in the above (column C) with an absolute cell reference eg. =IF(B2=$I$1,1,0). Try typing FALSE into I1. The drop-down will now show only the values with a status of false.
    This allows nested drop down menus (ie. a drop down powering the selection criteria of a second drop down).

  • @OptionGal
    @OptionGal 9 ปีที่แล้ว

    "...and, of course, Skittles." Thanks Daniel for another great tutorial! I always learn a lot from your videos.

  • @babzo1
    @babzo1 10 ปีที่แล้ว +2

    Another exciting top-notch tutorial by Daniel..Thanks genius.

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      Thank you and thanks for the comments and the like!

  • @jamesbaird1108
    @jamesbaird1108 7 ปีที่แล้ว

    Great, this solved (one of) my problems. Thanks!

  • @Sobolev514
    @Sobolev514 11 ปีที่แล้ว

    Thanks Dan for uploading this video!

  • @bauer1969olivish
    @bauer1969olivish 8 ปีที่แล้ว

    Excelent work ,thank you very much for sharing ..thanks a lot

  • @krn14242
    @krn14242 11 ปีที่แล้ว

    Great job Dan. Thanks.

  • @ExcelVbaIsFun
    @ExcelVbaIsFun  11 ปีที่แล้ว

    I'm really glad you enjoyed this! Thanks, Dan.

  • @ExcelVbaIsFun
    @ExcelVbaIsFun  11 ปีที่แล้ว

    I'm glad you like. Thanks Joe!

  • @SyedKollol
    @SyedKollol 11 ปีที่แล้ว

    how could you make things so simple!!!!
    excellent!

  • @JoeKeever
    @JoeKeever 11 ปีที่แล้ว

    Thank you for this video.

  • @rafapareja21
    @rafapareja21 8 ปีที่แล้ว

    Dan, great video, I was looking for a tip like this to improve a program I am working on. Keep the good work!!

  • @HollowMan19xx
    @HollowMan19xx 7 ปีที่แล้ว

    Very helpful, thank you!

  • @alializadeh8195
    @alializadeh8195 2 ปีที่แล้ว

    مرسی

  • @wojciech765
    @wojciech765 10 ปีที่แล้ว +1

    very good lesson thanks for your help

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      wojciech765 Awesome thanks!!

  • @RuffnerBeratung
    @RuffnerBeratung 11 ปีที่แล้ว

    Good work, Tranks.

  • @excelisfun
    @excelisfun 11 ปีที่แล้ว

    Thanks!

  • @y2jchrisvincent
    @y2jchrisvincent 11 ปีที่แล้ว

    hey dan! thanks for all the video, how do i submit my questions regarding a project i am doing?

  • @icydragon542
    @icydragon542 3 ปีที่แล้ว

    Is it possible to filter that list based on another dropdown?
    For example:
    Drop down box 1 (Type of food): Desert food; Junk food; Dairy Food.
    ---> Desert food was selected
    Dropdown box 2 Specific food has only: Skittles; Chocolate
    --> User is only able to view skittles + Chocolate because they are are the only ones that are categorized as a desert food

  • @gerardvaneggermond9967
    @gerardvaneggermond9967 6 ปีที่แล้ว

    Dear sir, I found the explanation interesting, maybe you can help me on the way, if you have a dropdown on your Excel sheet you can also enter the same VBA code or make sure it ends up on a certain cell. Can you do two dropdown with interconnecting, making sure by conditional. I still have many questions regarding VBA, do you want to help me?

  • @TheSpunky19
    @TheSpunky19 6 ปีที่แล้ว

    I have a print command button on a userform but I don't want the command buttons to show when I print the form. Is that possible and would you consider a training video for this? Great videos, thanks!

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  6 ปีที่แล้ว

      Hi Merlin,
      So are you printing a worksheet or a userform itself? Not sure if I understand. If you have an object on a worksheet, usually you can change the settings so it doesn't appear on printout.
      Thanks
      Dan

    • @TheSpunky19
      @TheSpunky19 6 ปีที่แล้ว

      ExcelVbaIsFun, I am printing the userform itself.

  • @j.cullen9667
    @j.cullen9667 10 ปีที่แล้ว +4

    Thank You!!!

  • @ardeshiraqayi9976
    @ardeshiraqayi9976 3 ปีที่แล้ว

    Thanks brother... but mine doesn't get loaded with dynamic named range, it only accepts fix data just like you did, why ???

  • @gdorman619
    @gdorman619 7 ปีที่แล้ว

    Hello. Would you please be able to tell me how to list and set custom share point properties for excel files that are on a Share Point using VBA? For example when I created SharePoint library I added custom properties such as Reviewed? , Remediation Complete? and IAM Accepted?. These properties can be set on SharePoint for each file. I want do this using VBA. Thanks!

  • @ameydabholkar97
    @ameydabholkar97 11 ปีที่แล้ว

    Thanks...

  • @TheIam7teen
    @TheIam7teen 7 ปีที่แล้ว

    Hi thanks for the tutorial. 😊 is there a way to search-as-you-type in the combobox? I have a thousand items on the list, and i need the combobox to 'suggest' items regardless if the typed text is on the beginning middle or end of the text on the list.
    For example: i have items float glass, glass beads, sunglasses, ceramic tiles, abrasive on the list. If i type 'glass' it will show those three items with glass on it.
    My combobox is searching through the first letter of the string only. I'm a newbie in programming so i have no idea how to do it. Thank you in advance

  • @GuillermoDelBosto
    @GuillermoDelBosto 4 ปีที่แล้ว

    Thanks for it, but i don't understand how the vbform can fill combobox from excel worksheet

  • @tommynorman910
    @tommynorman910 10 ปีที่แล้ว

    I have a excel sheet that has two comboboxs. the first one combobox1 loads values from Col A. What I need to do is depending on what the text is in the adjacent Col B for that selection load combobox2 with Col A from a named sheet. So I have 4 items that will load into the first box Apples, Bananas, Pears, Grapes and I have sheets named Apples, Bananas, Pears, Grapes. So If someone picks Apples the second box will be loaded with all the things in the Col A of Apples sheet. I have several versions of attempts I have made but can not get everything to work. Any help will be appreciated.

  • @gerardvaneggermond9967
    @gerardvaneggermond9967 5 ปีที่แล้ว

    Hello sir, maybe you can help me, I have worksheets 1,2 and 3 in it is on every data sheet they all look the same, I want to create a user form that can say on top of which sheet I am below I want a name look up below that I want to look up the data in columns 3 and 4 start from row 3 this for all 19 players, can you give me an example, can you help me?

  • @williampepe6104
    @williampepe6104 6 ปีที่แล้ว

    i need to populate specific cell locations based off a combobox drop down population. can you help?

  • @lazarusborjz3412
    @lazarusborjz3412 9 ปีที่แล้ว

    Hi Dan, I have a problem creating a code for attaching photos, i try it but still not a concrete way because i use a lot of active button. I hope you can help me and i really appreciated alot. I have a check list on sheet 1. means lots of raw and column. each raw have an item number 1 up to 100 example. item 1 in range k2 i use to type all the photo number. which 1 up to 8 photo max. and item 2 in range k3 i only have 3 photo, in item 3 in range k4 have 6 photo. and so on. In Sheet 2 i have to attached all the photo with the same designated reference item number simultaneously if you click the button. The photo will be attach with in the certain range of cell. like from A5:F16 only. With in that range the photo will be resize automatedly to fit in it. Example if only 1picture the size is (150x145), if 2picture the dimension is (135x125) and so on up to 8 photo max to be attach in each item number. I hope you can help me to decode a command in one click of a button. Thank you & very appreciated.

  • @asadost258
    @asadost258 6 ปีที่แล้ว

    how to create searchable dropdown list in userform....i have many data in row 1 in my worksheet, its time consuming to select. plz help

  • @fernandogapomartins1069
    @fernandogapomartins1069 9 ปีที่แล้ว

    Gostaria de saber como se aplica o resultado da pesquisa da comboboxe a uma céluda do excel.
    Obrigado

  • @R3aktt
    @R3aktt 10 ปีที่แล้ว

    Hey for some reason my properties window doesn't have a rowsource property? is there another way to achieve the same result?

    • @ingples
      @ingples 9 ปีที่แล้ว

      R3aktt I have the same problem. Maybe is because I have Mac version?
      Have you PC or Mac?

  • @nepalpankaj
    @nepalpankaj 10 ปีที่แล้ว +1

    Hey Dan what event is the best to use to fill an activex combobox dynamically using a .additem vba code?

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  10 ปีที่แล้ว

      Pankaj Nepal Any event should do fine. Click, double click, mousemove, userform initialize - they're all good depending on when and where!

  • @gerardvaneggermond9967
    @gerardvaneggermond9967 4 ปีที่แล้ว

    Hello, maybe you can help me, I have an Excel workbook, it is for our billiards club. What do I want to do now, I want to see who can still play whom, but there are 3 handicaps, (It is part made in VBA), In the worksheet "MENU" it says on F2 which number (example if F2 on "1 handicap 1 is played), there are 20 players in total (each player has a name), for example "player1", "player2". I want to make a combo box that can do all that, can you help?

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  4 ปีที่แล้ว

      Hi Gerard,
      Sounds complicated. Can you email me more info and screenshots at excelvbaisfun.com/contact ? I should be able to advise or help as time allows.
      Thanks
      Dan

  • @felipemartins5766
    @felipemartins5766 7 ปีที่แล้ว

    How do you add a combobox list from another worksheet?

  • @sidior12
    @sidior12 9 ปีที่แล้ว

    I think this is the code I'm looking for but not sure. Say if I select an item from a list in my dropdown list and I want to populate text boxes on the form with the information from the worksheet in the same row but different columns. Exmp. Select Betty from dropdown list then I want the text boxes each to populate with her class, instructor, grade, and GPA at the same time. These are all column headings in the worksheet and the students are in the first column.

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  9 ปีที่แล้ว

      Hi sidior12, you could do a vlookup and populate the text boxes that way.
      If you search my channel for VLOOKUP, you'll see some of these methods.
      Cheers!
      Dan

    • @sidior12
      @sidior12 9 ปีที่แล้ว

      Hi Dan.
      Tried VLookup but again no luck. I used "case" for the first two list boxes which worked fine, but I keep getting a problem in my last line of code.. That line of code is suppose to point to the separate worksheet that lists the doctors' names in Listbox1 from the subcategory of specialties that are returned in combobox2 (ComSelect). The doctors' names are in sheet "Spinal_docs" cells B2-B83 of the worksheet but nothing happens. My code is below. This last line is wre I'm havng the problem:
      Private Sub ComSelectCategory_Change()
      [when select from catagory return values in subcategories]
      Me.ComSelect = ""
      Select Case Me.ComSelectCategory
      Case "Neuro"
      Me.ComSelect.RowSource = "Neuro"
      Case "spinal"
      Me.ComSelect.RowSource = "Spinal"
      Case "Ocular"
      Me.ComSelect.RowSource = "Ocular"
      Case "Geriat"
      Me.ComSelect.RowSource = "Geriat"
      Case "Pied"
      Me.ComSelect.RowSource = "Peid"
      [below is the separate sheet and names of spinal doctors that I'm tring to return in Llistbox1]
      If Me.ComSelect.RowSource = "Spinal" Then
      Me.ListBox1 = Sheets("Spinal_docs")!$b$2:$b$83

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  9 ปีที่แล้ว

      sidior12 You're missing the END SELECT for your select case. You also need an END IF for your IF THEN statement.
      Also, instead of Sheets("Spinal_docs")!$b$2:$b$83
      try
      Sheets("Spinal_docs").range("$b$2:$b$83")
      Thanks!!
      Dan

  • @Chaingangsoldiernit
    @Chaingangsoldiernit 8 ปีที่แล้ว

    Hey man, good video. Your outro is too loud though.

  • @Newadventurers
    @Newadventurers 11 ปีที่แล้ว

    Can I possibly email you a combo box problem I have? If yes, please let me know whats the best email to get you on. Many thanks

    • @paulkent1228
      @paulkent1228 11 ปีที่แล้ว

      course you can, paulkent71@gmail.com

  • @goulchansorel6672
    @goulchansorel6672 6 ปีที่แล้ว

    Someone knows how to reefer to a VBA dropdown menu value in a cell function ?

  • @jetpaq
    @jetpaq 9 ปีที่แล้ว

    Theme song and microphone volume are unbelievably unmatched. Them song almost busts speakers.LOL try to adjust if possible.