Populate userform label from cell

tbuilt77

New Member
Joined
Nov 15, 2018
Messages
5
I have a vlookup cell in a spread sheet. I want a userform label to display the value from the vlookup in a note on the userform. I can't figure out how to link a cell reference to a userform label. Any suggestions?

The label on the userform would say "The primary production line for this product is ??VLOOKUPVALUE?? Which production line would you like to schedule?"

The user then selects either the primary production line or another production line from a combo box drop down list.
 
If your a new user of vba I would always leave my controls named as the default name.

A Userform default name is always UserForm1

Unless you have more then one userform in the same workbook.

And I would do the same for all my controls until I really have a grasp of vba

Giving your userform a name like this just makes things complicated

You said:
My user form is named UFFactoryComboBox

Why would you ever name your userform like this?

Sort of like never give your Textbox a name like Sheet14

And this originally was a very simple question.

That's why it's always best from the start to give specific details.

Like you never gave us the name of the sheet with your Vlookup results or the Range

If these things are not on the active sheet you must always give specific sheet names

 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,888
Messages
6,175,217
Members
452,619
Latest member
Shiv1198

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