+ Reply to Thread
Results 1 to 4 of 4

Userform choice generates another Userform with various Comboboxes

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    26

    Userform choice generates another Userform with various Comboboxes

    Hi everyone,

    I am new at VBA and struggling to come to terms with the whole language.

    My problem is as follows:

    I currently have a UserForm which opens when i open my excel workbook. Within this UserForm there is one ComboBox with three options. I would like to generate a new UserForm depending on the choice made in the ComboBox.

    e.g. If "A" is chosen from the ComboBox then another UserFormA should come on. If "B" UserformB...ect

    The end result would be that from the second Userform you would be able to make choices which would generate the data from the database...

    Anyone know the coding for this, I expect its pretty straightforward...

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Userform choice generates another Userform with various Comboboxes

    You could have command button and do something like this.
    Please Login or Register  to view this content.
    By the way, are the 3 forms completely different?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-10-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Userform choice generates another Userform with various Comboboxes

    Amazing. That's what I wanted to do.

    The Three forms aren't completely different, but they each have their own variables with various comboBoxes created from lists from one of the tabs from my excel spreadsheet. Why do you ask?
    Last edited by bobby.bobby; 02-04-2013 at 04:03 AM.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645
    I was just wondering if you needed all three forms,

    If they are pretty different from each other then I suppose you do.

+ 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