Adding to a value that will be auto filled into a textbox from a selection.

rharri1972

Board Regular
Joined
Nov 12, 2021
Messages
132
Office Version
  1. 2019
Platform
  1. Windows
Hello everyone! I have a userform with a combo box that is populated with customers upon clicking on the dropdown arrow. Upon double clicking on the customer needed... there will be information sent to different textboxes, i.e., Click the customer i need and that customer name stays in combo box... the Customer ID number goes to textbox 1, customer address to textbox2, city, state, and zip each go to texbox 3,4,and 5. I also have Label1 at the top of the userform "Customer Order Form".

On Textbox1_(CHANGE) if the Label1=Customer Order Form then I would like for "O_" to be added in front of or before the Customer ID number.

I got as far as to type: me.textbox1.value="O"&"_"& and then i realized i had no idea of how to tell it what to do.

I would appreciate anyhelp that is given!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Could you upload a sample workbook (without sensitive data) to a sharing site like dropbox.com or google drive?
And then share the link here.
 
Upvote 0
Could you upload a sample workbook (without sensitive data) to a sharing site like dropbox.com or google drive?
And then share the link here.
Akuini... I actually figured this one out. Thank you for being willing to help. I don't know how to stop this thread or how to keep it from circulating anymore. Would you know how since i don't need help with it anymore?
 
Upvote 0
Glad you figured it out.
I don't know how to stop this thread or how to keep it from circulating anymore. Would you know how since i don't need help with it anymore?
You can't and you don't need to.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,591
Members
449,089
Latest member
Motoracer88

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