NatetheGreat
Active Member
- Joined
- Nov 18, 2013
- Messages
- 268
Hello,
I am totally new to creating userforms, and have done a bit of googling but either find information too basic of too confusing.
I have inserted and formatted a button into a new userform in my workbook "Userform1". I have then placed two text boxes, two labels, and one command button. I want within my code, for the form to open, and the values the user puts in either box to be passed into the module.
So in module 1
sub somecode()
code
code
code
userform1.show
storedval=userform1.textbox1.value
soredval2=userform1.textbox2.value
end sub
So I want the userform to open, user to put in some values, click the command button, the form to close and the values to pass from the textboxes into the sub somecode()
I am totally new to creating userforms, and have done a bit of googling but either find information too basic of too confusing.
I have inserted and formatted a button into a new userform in my workbook "Userform1". I have then placed two text boxes, two labels, and one command button. I want within my code, for the form to open, and the values the user puts in either box to be passed into the module.
So in module 1
sub somecode()
code
code
code
userform1.show
storedval=userform1.textbox1.value
soredval2=userform1.textbox2.value
end sub
So I want the userform to open, user to put in some values, click the command button, the form to close and the values to pass from the textboxes into the sub somecode()