+ Reply to Thread
Results 1 to 4 of 4

Copying Data between userforms

  1. #1
    Forum Contributor
    Join Date
    07-22-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    122

    Copying Data between userforms

    I have userform1 and userform2, userform1 has a button to open userform2, userform2 has 3 textboxes, textbox1, textbox2, textbox3, textbox3 = textbox1 * textbox2, which value to textbox3 is linked to a command button, the command button does the calculations to assign the value of textbox3, there is a ok button which will close the userform2 and return to userform1, userform1 has a textbox3, i am trying to have the value of userform2.textbox3 copy to userform1.textbox3

    code is on userform2
    Please Login or Register  to view this content.
    I have also trying delclaring a public variable for textbox1 * textbox2 as textcalc, but the value is still copying over to the userform1 textbox3. any help would be appreciated. Thanks in advance

    I have attached a basic version that i am trying to work with
    Attached Files Attached Files
    Last edited by paxile2k; 12-28-2010 at 11:11 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copying Data between userforms

    Hi paxile2k

    You're code unloads the form before the line can be executed
    Please Login or Register  to view this content.
    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    07-22-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: Copying Data between userforms

    Quote Originally Posted by jaslake View Post
    Hi paxile2k

    You're code unloads the form before the line can be executed
    Please Login or Register  to view this content.
    John
    Wow, Thankyou, I completely did not take into consideration on the placement of the unload me event. Thankyou for your assistance. somehow i knew it would be easy.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copying Data between userforms

    Hi paxile2k

    Glad to help. A comment FYI...please don't quote entire posts. Administrators frown on it.

    John

+ 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