Results 1 to 5 of 5

Thread: multiple form

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2011
    Posts
    6

    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.

  2. #2
    Hyperactive Member
    Join Date
    Oct 2010
    Location
    Indiana
    Posts
    457

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2011
    Posts
    6

    Re: multiple form

    Quote Originally Posted by nO_OnE View Post
    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.

  4. #4
    Addicted Member
    Join Date
    Jan 2009
    Posts
    183

    Re: multiple form

    Quote Originally Posted by RonMexico View Post
    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.

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2011
    Posts
    6

    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
  •  



Click Here to Expand Forum to Full Width