A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
If you really want to use CTRL, the ListBox for ActiveX Control can meet your needs.
How to add a ListBox (ActiveX Control)?
Click the Developer tab >> Insert >> ListBox (ActiveX Control)
If you can not see the Developer tab, please do the following steps first:
Right-click the ribbon >> Customize the Ribbon >> check Developer
How to add a column data to the added ListBox?
e.g, there are four data rows in column A:
──
A
──
5
8
6
3
──
Press [Alt+F11] to open the VBE Environment, and then paste the following code to a Module (Insert >> Module):
Sub AddRangeData2ListBox()
Dim arrList
arrList = Range("A1:A4")
ListBox1.List = arrList
End Sub
{5, 8, 6, 3} will add to the ListBox after you run the macro above.
How to set the selection type of the added ListBox?
Go back to Sheet1, click the Developer tab >> Design Mode >> Properties >> select the added ListBox >> MultiSelect >> 2 - fmMultiSelectExtended >> Design Mode
Note:
In this way, every time you open the Excel document, the list is empty, to keep the original data, you should add the Workbook_Open event in ThisWorkbook like below:
Private Sub Workbook_Open()
AddRangeData2ListBox
End Sub
Best regards,
Cristin