Greetings, I have 10 userforms - lets call them userforms1 and userform2 and userform3 and so on. And I would like in certain circumstances for these forms to be able to call a second userform that we will call userformA. However, I need to pass information from at least 1 textbox into a textbox on userformA, I would rather not build 10 userforms for each one of them, but just use userformA for all of them. So I am thinking that I could use a variable and just construct the code to be something like "i & userform name". I need to be able to reference the name of the userform that calls for it. Is this possible to do?
Thanks for any input - it is appreciated.
Thanks for any input - it is appreciated.
Code:
Private Sub UserFormA_Initialize()
UserFormA.TextBox1.Text = UserForm1.TextBox1.Text
End Sub