Two columns

the_sea

New Member
Joined
Jan 23, 2022
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hello, I have to populate two columns: B with company name and C with company's code. So I made a range in another sheet with company names and codes and called the range ABC.
Then I made an ActiveX ComboBox with this settings:

BoundColumn 2
ColumnCount 2
ListFillRange ABC
TextColumn 1
Mostly I tried to guess this values.

The good part is that, if I type Abc, combo knows that I am reffering to company Abcdef and autocomplete full name, but that's the only good part.

Less good parts: it doesn't allow me to copy the name and the code, even if it displays it if I click the combo's down arrow. I need the code, too.
Second, instead of typing names from ComboBox, then copy/paste where I need, isn't possible to type directly in empty cell B11 - for example Abc, and autocomplete Abcdef in B11 and 123 in C11? Then, for B12, next company name and code? Do I really have to copy/paste?

I tried with a UserForm, didn't work.
If somebody wants to help me, I am opened to try ComboBox, UserForm or VBA codes.
Sorry for language mistakes, I am from Romania and learning a lot. Thank you!

1Abcdef123Chips12345636870011/17/2020
2Ghijkl456Chips12345410870111/17/2020
3Mnopqr789Chips12345413870211/17/2020
4Stuvwx135Chips12345520870311/17/2020
5Yz1234246Chips12345305870411/18/2020
6Mnopqr789Chips12345370870511/18/2020
7Abcdef123Chips12345511870611/18/2020
8Mnopqr789Chips12345532870711/18/2020In Name Manager, in another sheet
9Ghijkl456Chips12345400870811/19/2020range from A1 to B5 called ABC:
10Abcdef123Chips12345540870911/19/2020
11Chips12345ComboBox1Abcdef123
12Chips12345BoundColumn2Ghijkl456
4637​
ColumnCount2Mnopqr789
ListFillRangeABCStuvwx135
TextColumn1Yz1234246
 

Attachments

  • abc.jpg
    abc.jpg
    124.9 KB · Views: 10
  • combo.jpg
    combo.jpg
    99.1 KB · Views: 11

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I win. It was a big problem because I searched the answers day and night, for months, questioning myself if I am not able to apply a vlookup formula.
Evrika!
Formulas found on Google were right, but not for me.
When you install Windows, it asks you about Regional and language settings. I opted for English language for my computer, but for East Europe, Romania as setting for Region, because English and Romania have different ways for date/time, decimals etc. Microsoft make and Windows, and Office, so the Office automaticaly take system information.
All I had to to was to replace the comma "," with ";" . Yours decimals are not mine... Pe romaneste: inlocuiti virgula din formule cu ";" punct si virgula
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top