+ Reply to Thread
Results 1 to 4 of 4

Add new combobox to userfrom and assign an event which opens another new combobox

  1. #1
    Registered User
    Join Date
    03-28-2014
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Add new combobox to userfrom and assign an event which opens another new combobox

    My aim is as follows:

    - When a combobox is selected (_enter) I want it to create a new combo box just under the combobox selected
    - With this newly created combobox, if that is then selected (_enter) I then want to create another new comobox just below that one, and so on and so on until a maximum of five are created
    - With each new combobox I want to assign a list from a sheet range

    I am trying to use a class module to create further new comboboxes, however, I am getting very confused how to do this. I have seen similar examples that displays a message box when a combobox is selected and a message box is displayed.

    Any help on this would be greatly appreciated.

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

    Re: Add new combobox to userfrom and assign an event which opens another new combobox

    Why not add 5 comboboxes at design time and hide 4 of them.

    Then you can use code to show each combobox when required.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    03-28-2014
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Add new combobox to userfrom and assign an event which opens another new combobox

    This is what my original plan was, however i would like to get some experience using class modules and how to handle event changes.

    Any example of to implement this would be really helpful.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644
    You could use a class for the events of the 5 comboboxes added at design time.

+ 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. Replies: 1
    Last Post: 03-30-2014, 08:54 PM
  2. Control Toolbox ComboBox: Clear All cb when Worksheet Opens?
    By Agimcomas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-26-2012, 01:45 PM
  3. combobox.exit event
    By fozze in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2008, 07:27 AM
  4. [SOLVED] Combobox change event only by UI
    By Excelerate-nl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2006, 11:10 AM
  5. MsgBox in Enter event causes combobox not to run Change event
    By Richard in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2006, 10:55 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