Article ID: 188497
Article Last Modified on 6/17/2005
Private Sub CommandButton1_Click()
'Set the text for TextBox1 in UserForm2 with the text in
'TextBox1 in UserForm1.
UserForm2.TextBox1.Text = TextBox1.Text
UserForm1.Hide
UserForm2.Show
End Sub
Private Sub CommandButton1_Click()
'Set the text for the TextBox in UserForm1.
UserForm1.TextBox1.Text = TextBox1.Text
UserForm2.Hide
UserForm1.Show
End Sub
NOTE: Because the CommandButton and TextBox controls are on different
UserForms, you can use the same name for the controls.
Sub Show_UserForms()
UserForm1.Show
End Sub
176476 OFF: Office Assistant Not Answering Visual Basic Questions
Additional query words: XL98
Keywords: kbhowto kbprogramming kbdtacode KB188497