+ Reply to Thread
Results 1 to 3 of 3

VBA List box to choose the right user form depending on the selction

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    VBA List box to choose the right user form depending on the selction

    Hi All

    I have a quick query which Im sure it be easy for someone with good knowledge of VBA.

    I have attached a very simple spreadsheet to explain what I need to do.

    I was the user form which I have created to show a list of names and depending on the selection of the name opens up another form for that person with some command buttons which the user can choose to navigate through the appropriate sheets.

    In the example I have attached, If I choose Frank, I need the user form Frank to open so Frank can navigate from his user form. I have set everything up properly but need to know the code for list box selection item to open the right user form.

    Hope I am clear in what Im trying to do.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: VBA List box to choose the right user form depending on the selction

    I don't have a good knowledge of VBA so not sure if I am eligible to answer your question, but in this case I would like to trigger a double click event for list box instead of having a command button on the userform1.

    You may try something like this.....

    Please Login or Register  to view this content.
    Or you can place a command button as per your requirement and place the following code inside the button click event.

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: VBA List box to choose the right user form depending on the selction

    Thanks, this works great. I appreciate your help

+ 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. Choose Time Points Based on Values from Combo Box in User Form
    By Chaba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2014, 01:42 PM
  2. Hide rows & Dropdowns depending on a Master-Dropdown List (choose between 1 and 10)
    By chrisignm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2014, 07:26 PM
  3. Replies: 1
    Last Post: 03-03-2014, 06:17 PM
  4. Using user form choose two columns and find duplicates values
    By midexlis in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-30-2009, 04:23 AM
  5. [SOLVED] User to choose an item from a list
    By Hari in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-20-2006, 02:00 PM

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