Excel VBA Userform Vlookup - Populate TextBoxes dependent on ComboBoxes

Gene31705

New Member
Joined
Apr 5, 2013
Messages
10
Good morning MrExcel Members.

I'm requesting help on VBA code to populate TextBoxes based on what is entered into ComboBoxes.
I have a combo box

  • (TailNumber_cbo)

I have three Text Boxes

  • AircraftType_txt,
  • EquipmentType_txt
  • Color_txt)

All three inside a Frame (Aircraft_fra)

  • My TailNumber_cbo is populated from my RowSource (=TailNumber) located on Sheet5 (Equip Codes).
  • My AircraftType_txt should be a Vlookup based on TailNumber_cbo selection and populated from Sheet5 (Equip Codes) number 2 (Column B).
  • My EquipmentType_txt should be a Vlookup based on TailNumber_cbo selection and populated from Sheet5 (Equip Codes) number 5 (Column E).
  • My Color_txt should be a Vlookup based on TailNumber_cbo selection and populated from Sheet5 (Equip Codes) number 6 (Column F).

I don't think this is required, but...
...I have the AircraftType as a Dynamic Named Range AircraftType.
...I have the EquipmentType as a Dynamic Named Range EquipType.
...I have the Color as a Dynamic Named Range Color.
All on Sheet5 (Equip Codes)

I have many other comboboxes and textboxes in my application but I assume if I understand how to do one, I can do all.

All of the entries on this userform will populate two separate Sheets; (Sheet1 (Log Book) and Sheet3 (Flight Plan));

  • TailNumber_cbo will populate Sheet1 (Log Book) the next blank cell in column B
  • TailNumber_cbo will populate Sheet3 (Flight Plan) cell C2
  • AircraftType_txt and EquipmentType_txt will populate Sheet1 (Log Book) the next blank cell in column C (with a space between AircraftType_txt and EquipmentType_txt)
  • AircraftType_txt will populate Sheet3 (Flight Plan) cell E2
  • EquipmentType_txt will populate Sheet3 (Flight Plan) cell E2 (with a space between AircraftType_txt and EquipmentType_txt)
  • Color_txt will populate Sheet3 (Flight Plan) cell A20

Thank you very much for your help.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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