#HOW TO USE VLOOKUP IN EXCEL WITH DROP DOWN LIST MAC CODE#
VBA Code to allow Multiple Selections in a Drop-down List (with repetition)īelow is the Excel VBA code that will enable us to select more than one item from the drop-down list (allowing repetitions in selection): Private Sub Worksheet_Change(ByVal Target As Range) The next two sections of this tutorial will give you the VBA code to allow multiple selections in the drop-down list (with and without repetition). To enable this drop-down to allow us to make multiple selections, we need to add the VBA code in the back end.
Now, cell C2 has a drop-down list which shows the items names in A2:A6.Īs of now, we have a drop-down list where you can select one item at a time (as shown below). In Source field, select the cells which have the items that you want in the drop down.In the Data Validation dialogue box, within the settings tab, select ‘List’ as Validation Criteria.Go to Data –> Data Tools –> Data Validation.Select the cell or range of cells where you want the drop-down list to appear (C2 in this example).Here are the steps to create a drop-down list in Excel: There are two parts to creating a drop-down list that allows multiple selections: So if you have any questions after reading this, please check out the FAQ section first. Since I get a lot of similar questions, I have decided to create an FAQ section at the end of this tutorial. This has been one of the most popular Excel tutorials on this site.