Here takes the Modify option as an example, if you choose this, the cell value will be changed based on the selected items.2.2) In the Mode section, choose a style which you want to output the selected items.You can specify a certain range, current worksheet, current workbook or all opened workbooks based on your needs. 2.1) In the Apply to section, specify the applying scope where you will create checkboxes for items in drop-down list.In the Drop-down List wit Check Boxes Settings dialog box, please configure as follows. Open the worksheet that you have set data validation drop-down list, click Kutools > Drop-down List > Drop-down List with Check Boxes > Settings.
How to make a drop down list in excel how to#
See the below demo:ĭownload and try it now! ( 30-day free trail)īesides the above demo, we also provide a step-by-step guide to demonstrate how to apply this feature to achieve this task. Here highly recommend the Drop-down List with Check Boxes utility of Kutools for Excel to help you easily create drop-down list with checkboxes in a specified range, current worksheet, current workbook or all opened workbooks based on your needs. The above method is too multistep to handle easily.
How to make a drop down list in excel code#
And then save the workbook as an Excel MacroEnable Workbook for reusing the code in the future.Ĭreate drop down list with checkboxes with an amazing tool When the list box is expanding, checking the items in the list box, and then click the rectangle again to output all selected items into cell E4. Click on the rectangle button will fold or expand the list box. Press Alt + Q keys simultaneously to close the Microsoft Visual Basic for Applications window.Ħ. You can change them based on your needs.ĥ. Note: In the code, Rectangle1 is the shape name ListBox1 is the name of the list box Select Options and Pickup Options are the displayed texts of the shape and the ListBoxOutput is the range name of the output cell. Range("ListBoxOutput") = Mid(xSelLst, 1, Len(xSelLst) - 1) XSelLst = xLstBox.List(I) & " " & xSelLst Text = "Pickup Options"įor I = xLstBox.ListCount - 1 To 0 Step -1 Set xSelShp = ActiveSheet.Shapes(Application.Caller) VBA code: Create a list with multiple checkboxes Sub Rectangle1_Click()ĭim xSelShp As Shape, xSelLst As Variant, I, J As Integer In the opening Microsoft Visual Basic for Applications window, please replace the original code in the Module window with the below VBA code. In the Assign Macro dialog box, click the New button.Ĥ.
Then right click the rectangle and select Assign Macro from the right-clicking menu.ģ. Draw a rectangle in your worksheet (here I draw the rectangle in cell C4). Insert a shape to help output the selected itemsġ. Select the cell E4, enter ListBoxOutput into the Name Box and press the Enter key.Ĭ. If you need to output all selected items into a specified cell such as E4, please do as follows.ġ.
Use List Box to create a drop down list with multiple checkboxesī: Name the cell which you will locate the selected itemsĬ: Insert a shape to help output the selected itemsĮasily create drop down list with checkboxes with an amazing toolĪs below screenshot shown, in current worksheet, all names in range A2:A11 will be the source data of the list box. In this tutorial, we are going to show you two methods to create drop down list with multiple checkboxes in Excel.
Actually, you can’t create a list with multiple checkboxes with Data Validation. Many Excel users tend to create drop down list with multiple checkboxes in order to select multiple items from the list per time. How to create drop down list with multiple checkboxes in Excel?