To see the code for the SameCell sheet, in the sample file, you can right-click the sheet tab, and click on View Code. The code to allow multiple selections runs automatically when you make a change on the worksheet. Instead of filling other cells, you can keep all the selections in the same cell, separated by commas. In some worksheets, you might prefer to fill down, instead of across.
![excel macro button not working data validation list excel macro button not working data validation list](https://i0.wp.com/cdn.extendoffice.com/images/stories/doc-excel/doc-drop-down-calendar/doc-create-frop-down-calendar4.png)
You could use this technique to fill player names across a list of innings, or employee names for days of the week. Fill Across a Rowįor example, each item selected in this drop down list fills the next empty cell at the right. You might want all the items in a single cell, or in adjacent rows or columns. In the sample file, there are different examples of the code, with options for where the selected items are placed.
#Excel macro button not working data validation list full#
You can find the full list on the main page for this technique: select or remove multiple items from an Excel drop down list.prevent duplicates in multiple selection column.
![excel macro button not working data validation list excel macro button not working data validation list](https://www.exceltip.com/wp-content/uploads/2020/04/Capture-8.jpg)
: Since posting this article on selecting multiple items from an Excel drop down list, I’ve added more articles on this topic. To try it for yourself, follow the download link for the sample file, near the end of this article. There is also a video that shows the multiple selection drop down list. Keep reading, to see some examples of this technique, and how it works. You can display all the selected items across a row, or down a column, or keep them in the same cell. Instead of limiting users to a single selection, you can use a bit of programming, combined with the data validation list, and allow multiple selections. Select Multiple Items From the Drop Down List In the worksheet shown below, you can select a month from the drop down, and it overwrites any previous selection in that cell. With a bit of programming, you can customize a drop down list, to select multiple items.īy default, data validation drop downs only allow you to select one item.
![excel macro button not working data validation list excel macro button not working data validation list](https://d13ot9o61jdzpp.cloudfront.net/images/data_val_tables_6.png)
You’ve probably used an Excel data validation drop down list, where you can click the arrow, and select an item to fill the cell.