UserForm1.TextBox2.Value = UserForm2.TextBox1.Text -----not working after first time

Miler13

New Member
Joined
Feb 5, 2017
Messages
43
Hello, I looked through a bunch of places and couldn't come up with an answer to help me. The problem I am having is that a macro I have is based on having the previous textbox having an input that was pulled from the previous input box. Example. First userform box pops up, and you input a persons name. Second userform that pops up should have the first textbox with the persons name, and another textbox to input a number.

On the first go around, everything works great, but on the second time it does not work.

my code
Code:
Private Sub UserForm_Initialize()
UserForm1.TextBox2.Value = UserForm2.TextBox1.Value
End Sub
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
What does it do? It will work as many times as you want if the Userform is still open with the Textbox still containing the required text. Id imagine you have closed the userform so making it unavailable.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,429
Members
448,961
Latest member
nzskater

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