Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default 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....


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default 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....



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing arguments to userforms Steve Excel Programming 2 June 13th 06 05:31 PM
Data Validation on UserForms SailFL Excel Programming 0 August 19th 05 09:19 AM
Passing variable values from userforms Todd Huttenstine Excel Programming 1 November 2nd 04 02:43 PM
Userforms and Data Mark \(In Wales\) Excel Programming 3 September 14th 04 09:01 PM
UserForms and Variables and Types of data Larry Levinson Excel Programming 6 April 23rd 04 04:02 PM


All times are GMT +1. The time now is 09:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"