Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to create a drop down list with multiple checkboxes in Excel?

Many Excel users tend to create a drop down list with multiple checkboxes in order to select multiple items per time. Actually, you can’t create a list with multiple checkboxes with Data Validation. Here we will show you how to use the List Box to create a drop down list with multiple checkboxes in Excel.

Use List Box to create a drop down list with multiple checkboxes

A: Create a list box with source data

B: Name the cell of locating the selected items

C: Insert a shape to output the selected items from the list box


Easily insert or delete multiple check boxes in bulk in Excel:

The Batch Insert Check Boxes utilities of Kutools for Excel can help you quickly insert multiple check boxes in selected range at once. And you can delete all check boxes in selected range with the Batch Delete Check Boxes. See sccreenshot:

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!

Excel Productivity Tools

Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial

Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial


Use List Box to create a drop down list with multiple checkboxes


As below screenshot shown. In Sheet1, all names in range A2:A11 is the source data of the list box, click on the button in cell C4 can output the selected items, and all selected items in the list box will be displayed in cell E4. Please do as follows.

A. Create a list box with source data

1. Click Developer > Insert > List Box (Active X Control). See screenshot:

2. Draw a list box in current worksheet and then right click it. Then select Properties from the right-clicking menu.

3. Then the Properties dialog box pops up. In the ListFillRange box, enter the source range you need to display in the list (here I enter range A2:A11), and in the ListStyle box, select 1 - fmList StyleOption, then select 1 – fmMultiSelectMulti in the MultiSelect box. And finally close the Properties dialog box. All the source data has been added into the list box with checkboxes. See screenshot:

B: Name the cell of locating the selected items

If you need to output all selected items in a specified cell, please do as follows.

1. Select the specified cell (here we select cell E4), then enter ListBoxOutput into the Name Box.

2. Press the Enter key.

C. Insert a shape to output the selected items from the list box

1. Click Insert > Shapes > Rectangle. See screenshot:

2. Draw the rectangle in your worksheet (here I draw the rectangle in cell C4). Then right click the rectangle and select Assign Macro from the right-clicking menu.

3. In the Assign Macros dialog box, click the New button. See screenshot:

4. In the opening Microsoft Visual Basic for Applications window, replace the code in the Module window with the below VBA code.

VBA code: Create a list with multiple checkboxes

Sub Rectangle2_Click()

Dim xSelShp As Shape, xSelLst As Variant, I As Integer
Set xSelShp = ActiveSheet.Shapes(Application.Caller)
Set xLstBox = ActiveSheet.ListBox1
If xLstBox.Visible = False Then
    xLstBox.Visible = True
    xSelShp.TextFrame2.TextRange.Characters.Text = "Pickup Options"
Else
    xLstBox.Visible = False
    xSelShp.TextFrame2.TextRange.Characters.Text = "Select Options"
    For I = xLstBox.ListCount - 1 To 0 Step -1
        If xLstBox.Selected(I) = True Then  
        xSelLst = xLstBox.List(I) & ";" & xSelLst    
        End If
    Next I
    If xSelLst <> "" Then  
        Range("ListBoxOutput") = Mid(xSelLst, 1, Len(xSelLst) - 1)
    Else
        Range("ListBoxOutput") = ""
    End If
End If
End Sub

Note: In the code, Rectangle2 is the shape name; ListBox1 is the name of the inserted 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. You can change them based on your needs.

5. Press Alt + Q keys simultaneously to close the Microsoft Visual Basic for Applications window.

Now, return to the Sheet. Select items in the list box by checking the corresponding checkboxes.

After selecting all needed items from the list, click on the Rectangle to output them into the specific cell E4, and the list box will be hidden as well. See screenshot:

Office Tab - Tabbed Browsing, Editing, and Managing of Workbooks in Excel:

Office Tab brings the tabbed interface as seen in web browsers such as Google Chrome, Internet Explorer new versions and Firefox to Microsoft Excel. It will be a time-saving tool and irreplaceble in your work. See below demo:

Click for free trial of Office Tab!

Office Tab for Excel


Related articles:


Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Jimmy · 21 days ago
    Como puedo replicar éste ejercicio en las filas inferiores ?
    How can I replicate this exercise in the rows below?
  • To post as a guest, your comment is unpublished.
    alcatel · 2 months ago
    HELP!!! how output in different ranges (vertically)?
  • To post as a guest, your comment is unpublished.
    alcat · 2 months ago
    Добрый день! Прошу помочь.
    Как сделать так чтобы каждое значение выходило на новой клетке? чтобы по выходило по вертикали?
  • To post as a guest, your comment is unpublished.
    binoy · 4 months ago
    It is working fine, thanks a lot for your help. I have one issue here is that, all the output is coming in the same cell E4, how can we get the output in different cells Eg: output for C4 in E4, C5 in E5 ,C6 in E6 etc.
    • To post as a guest, your comment is unpublished.
      crystal · 3 months ago
      Good Day,
      The problem you mentioned can't be solve yet.
  • To post as a guest, your comment is unpublished.
    Elizabeth Katsman · 10 months ago
    Hello,

    I am wondering if there is a way to direct the pickup options to more than one cell (not just E4), or make the selections a dropdown checklist so that I can select multiple options off a checklist, but do so repeatedly and independent of the other selections I've made. For example, how would I go about using the same list of pickup options to input a different selection of items to E5, E6, E7, etc. from the same pickup list.

    Thank you