+ Reply to Thread
Results 1 to 3 of 3

Data transferred automatically from one Userform to another Userform VBA - possible?

  1. #1
    Forum Contributor
    Join Date
    07-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    211

    Data transferred automatically from one Userform to another Userform VBA - possible?

    Hi

    I don't know if this is possible.

    I have a Userform1 which has a commandbutton to open Userform2 on click. Userform1 also has a textbox.

    Userform2 has a number of commandbuttons with different captions, say Item A, Item B, Item C and so on.

    What I want to happen is :

    1 Open Userform1
    2 The textbox on Userform1 is empty
    3 Open Userform2 on clicking the commandbutton on Userform1
    4 When a commandbutton on Userform2 is clicked, the textbox on Userform1 is populated with the caption text of the clicked commandbutton.

    I can do everything up to 3 above, but can someone start me off to do 4?

    Many thanks

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Data transferred automatically from one Userform to another Userform VBA - possible?

    Try this sample
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    07-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    211

    Re: Data transferred automatically from one Userform to another Userform VBA - possible?

    Thanks Millz. Simple and concise!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Automatically Retrieve Data From a worksheet to userform
    By DKTRL in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2013, 02:25 PM
  2. Replies: 4
    Last Post: 11-28-2012, 06:09 PM
  3. [SOLVED] Copy Data loaded via Userform to a worksheet named in 1 field of the Userform
    By audax48 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-15-2012, 01:44 PM
  4. Display a UserForm based on Data selected in another UserForm's ListBox
    By RPhilbin83 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-26-2011, 11:35 AM
  5. Time is not transferred in hh:mm format from userform
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-28-2009, 06:47 AM

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