ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Passing data between Userforms (https://www.excelbanter.com/excel-programming/385998-passing-data-between-userforms.html)

Coza

Passing data between Userforms
 
I am having trouble passing a value from Userform4.Combobox1.value
to
Userform3.Textbox1.value

The value passes, but how do i successfully Close Off the Userform4 after
the value is input into u/f3 ?

Private Sub UserForm_Activate()
Application.ScreenUpdating = False
Userform3.TextBox1.Value = UserForm4.ComboBox1.Value
'Code to populate Userform3 here
Application.ScreenUpdating = True
End Sub


Corey....



JLGWhiz

Passing data between Userforms
 
What do you mean by "close off"? You can use UserForm4.Hide to make it
invisible or you can use Unload UserForm4 to deactivate it altogether until
you want it to Show again. The Unload method releases the memory where the
form is stored.

"Coza" wrote:

I am having trouble passing a value from Userform4.Combobox1.value
to
Userform3.Textbox1.value

The value passes, but how do i successfully Close Off the Userform4 after
the value is input into u/f3 ?

Private Sub UserForm_Activate()
Application.ScreenUpdating = False
Userform3.TextBox1.Value = UserForm4.ComboBox1.Value
'Code to populate Userform3 here
Application.ScreenUpdating = True
End Sub


Corey....





All times are GMT +1. The time now is 10:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com