[英]In VBA Excel, code to pass value from userform based on certain criteria
I need some help for a vba code.对于 vba 代码,我需要一些帮助。
Data is on the same worksheet.数据在同一个工作表上。
I created a userform that contains a combobox and a text box.我创建了一个包含 combobox 和文本框的用户表单。 The values in the combobox are names stored in sheet1.range("A1:A300"). combobox 中的值是存储在 sheet1.range("A1:A300") 中的名称。 The user enters a phone number in the textbox.用户在文本框中输入电话号码。
I struggle creating a code where I could pass the textbox value next to the name choosen by the user in the combobox.我很难创建一个代码,我可以在 combobox 中用户选择的名称旁边传递文本框值。 The textbox value would be stored in column B.文本框值将存储在 B 列中。
Thanks for the help.谢谢您的帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.