|
-
May 1st, 2011, 07:37 PM
#1
Thread Starter
New Member
multiple form
i have a macro with multiple forms. how to i read information from one form to another. for example if form1 has checkboxes and radio buttons how do i read if whether or not the check box was selected and the radio button was selected in form3.
-
May 1st, 2011, 10:51 PM
#2
Hyperactive Member
Re: multiple form
By using the names of the forms along with the objects from that form...
Code:
Userform1.TextBox1.Text
Userform2.TextBox1
Userform3.CheckBox
I assume you are just using VBA from within an Office application.
Last edited by nO_OnE; May 1st, 2011 at 10:55 PM.
-
May 2nd, 2011, 09:33 AM
#3
Thread Starter
New Member
Re: multiple form
 Originally Posted by nO_OnE
By using the names of the forms along with the objects from that form...
Code:
Userform1.TextBox1.Text
Userform2.TextBox1
Userform3.CheckBox
I assume you are just using VBA from within an Office application.
i have tried that but i don't get any value. lets say that the user input their name in userform1.NameTextbox. when i want to retrieve that information on userform3, i don't get any value.
-
May 2nd, 2011, 10:20 AM
#4
Addicted Member
Re: multiple form
 Originally Posted by RonMexico
i have tried that but i don't get any value. lets say that the user input their name in userform1.NameTextbox. when i want to retrieve that information on userform3, i don't get any value.
Have you closed the 'userform1' form? Once you close a form, the data is gone.
-
May 2nd, 2011, 10:35 AM
#5
Thread Starter
New Member
Re: multiple form
thankx mark, i went back to view the code and i saw that i unloaded it instead of hiding the form
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|