Userform lookup Help

Rabble

New Member
Joined
Jun 16, 2009
Messages
1
I am creating a userform that I hope to use to create a quick quotation packagei have worked out most of the userform and it now works fine i just have one small thing that i need help with
The userform that i have created has a combobox which is used to show part numbers from my spreadsheet. I would now like to add a text box that will display the part discription when the combobox part number is selected.
I have been told that the lookup function is the best way to achive this.
I have no problem with the lookup function in my worksheets but adding it to the userform is causing me real problems.
Is this the best way to do what i am trying to do?
I am new to using vba and am struggleing to create the code to make this work. Any help would be gratefully recieved.
Rabble
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi,

You need to use application.vlookup (which is basically a Vlookup!)

It should look something like this

Code:
found = Application.Vlookup(lookFor.Value, rng, col, 0)

DP
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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