Userform text box data into a sheet.

Zimmerman

Well-known Member
Joined
Jan 22, 2009
Messages
663
Can someone help me out with getting the data entered into a userform text box entered into cells on a sheet. I have a userform that has a text box that's labeled "EmployeesTextBox" where the user will enter the number of employees needed. All I want to do is transfer what they entered into cell K51 on sheet labeled "1st Item"

Windows XP
Excel 2003
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Behind a command button (named cmdAdd) place this in it, by double clicking the button

Sheets("1st Item").Range("K51")=me.EmployeesTextBox
 
Upvote 0
Sorry I guess it would be nice if i gave you all the info. How can i get this to be put in after the user hits the OK button.
 
Upvote 0
The code I gave you will do this. In your VBA screen select the userform, then double click on your OK button and add the code.
 
Upvote 0

Forum statistics

Threads
1,224,508
Messages
6,179,189
Members
452,893
Latest member
denay

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