简体   繁体   中英

Excel ComboBox, how to populate text data from 2 columns?

I want to populate one ComboBox object with data from another sheet. The data consists of First and Last name separated on two columns: A and B.

Excel file contains two sheets: Data and Test.

The combobox object is located at „Test“ sheet.

On the properties of ComboBox at ListFillRange i have put the following:

Data:A2:B50

I expect to see both first names and last names. However, what i can see on the combo box is only first names. Am i doing something wrong here? Thank you.

Use a helper column and combine the First and Last name there.

You can put it where you want and/or hide that helper column later.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM