+ Reply to Thread
Results 1 to 4 of 4

Transfer Text from one userform to another userform

  1. #1
    Forum Contributor
    Join Date
    07-25-2012
    Location
    San Antonio, Texas
    MS-Off Ver
    Excel 2010
    Posts
    142

    Transfer Text from one userform to another userform

    I don't have any example of code at all so we'll call the first form "userform1" and the textbox "UserID" with command button "LogIn" and the second form "userform2' and the textbox "UserID" along with misc others. The UserID would need to go from the first to the second userform. This will later be put into an excel sheet but I have that part done.

    Any help is greatly appreciated.

    Thanks in advance,

    -Orestees

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Transfer Text from one userform to another userform

    Try this method, and let me know if it works.

    Inser a Standard Module, and enter the following code:
    Please Login or Register  to view this content.
    Then in the userform1 code, somewhere appropriate enter

    Please Login or Register  to view this content.
    Then, in the Userform2 Initialize code, enter the following:

    Please Login or Register  to view this content.
    Does this work/are you able to follow?

  3. #3
    Forum Contributor
    Join Date
    07-25-2012
    Location
    San Antonio, Texas
    MS-Off Ver
    Excel 2010
    Posts
    142

    Re: Transfer Text from one userform to another userform

    Thanks a ton!! I was able to get it to work perfectly! The issue now is that I'm trying to get the UserID to connect with an intermediate userform and then finally with Userform2 for final output to a sheet. LogIn (Userform1) --> Selection -->Userform2 --> Excel Sheet.
    Still messing with it but in the meantime, any clues?

  4. #4
    Forum Contributor
    Join Date
    07-25-2012
    Location
    San Antonio, Texas
    MS-Off Ver
    Excel 2010
    Posts
    142

    Re: Transfer Text from one userform to another userform

    Finally figured it out. Used the below code in the two userforms that were passing the data into the final spreadsheet. WHEW!!! Thanks for the huge jump start BigBas!!
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1