VBA code help

noobiestnoob

New Member
Joined
Jun 1, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello All, my username aptly conveys my experience with Excel and VBA. I am trying to create a GUI to call out values from a worksheet.

Currently, I have a worksheet (Sheet1) which is a "calculator" page. Sheet 1 pull values from another worksheet (Sheet 2). In Sheet 2, Col A has reference codes (mainly numbers but some have an Alphabet prefixed to the number). Columns B through K are different vendors and they contain the price for the reference codes in Col A.

This is the formula I am currently using to get the price: =IFERROR(VLOOKUP(C7,INDIRECT("'"&B$11&"'!$A$2:$C$22500"),3,FALSE),0),
where C7 is the reference code, B11 is the cell where I pick the vendor name.

I am now trying to create a VBA form, such that I am able to pick the vendor with a combobox dropdown.
Next when I enter in a textbox the reference code, I would like the the cost for that code for that specific vendor autopopulate in Textbox 2

I just do not know how to do this because I realized that I am the noob's noob. All assistance greatly appreciated.
Thanks!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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