简体   繁体   English

Excel ComboBox,如何从 2 列填充文本数据?

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

I want to populate one ComboBox object with data from another sheet.我想用另一张表中的数据填充一个 ComboBox object。 The data consists of First and Last name separated on two columns: A and B.数据由两列分隔的名字和姓氏组成:A 和 B。

Excel file contains two sheets: Data and Test. Excel 文件包含两个工作表:数据和测试。

The combobox object is located at „Test“ sheet. combobox object 位于“测试”表。

On the properties of ComboBox at ListFillRange i have put the following:在 ListFillRange 的 ComboBox 的属性上,我放置了以下内容:

Data:A2:B50数据: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.您可以将它放在您想要的位置和/或稍后隐藏该帮助列。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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