Closed Thread
Results 1 to 7 of 7

Linking two ActiveX Drop-Down ComboBoxes

  1. #1
    Registered User
    Join Date
    12-16-2008
    Location
    Germany
    Posts
    3

    Linking two ActiveX Drop-Down ComboBoxes

    Hello,
    I've created two ActiveX ComboBoxes.
    The first ComboBox (cb_DSelection) has the entries "Laptop" and "Workstation".
    The second ComboBox (cb_DType) should list the devices dependent on the selection of the cb_DSelection ComboBox.
    For this I have created a second worksheet called "Data" where the devices are listed, the ComboBoxes are on the first worksheet.
    I've given the cells containing the Laptops and Workstations the same name as listed in cb_DSelection and tried to link cb_DType with cb_DSelection with the following VBA Code:
    Please Login or Register  to view this content.

    The selection of cb_DSelection should change the Values in cb_DType.
    But this code does not work.
    Any ideas or hints how to get this done?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Can you attach the workbook?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-16-2008
    Location
    Germany
    Posts
    3
    Here the workbook
    Attached Files Attached Files

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,973
    Try this:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-16-2008
    Location
    Germany
    Posts
    3
    Thank you. That did it.

  6. #6
    Registered User
    Join Date
    06-18-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Linking two ActiveX Drop-Down ComboBoxes

    Hi,

    I have been trying to adapt this so that a third combobox is dependant on the second.
    For example, box 1 may have options of books, films, music etc. If books were selected you may have option of Ficton or non fiction, then depending on whats picked, you have choice of titles.
    Is this possible ?
    My skills are limited and it has me stumpped !!

    Any hope would be very appriciated.

    Many Thanks

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Linking two ActiveX Drop-Down ComboBoxes

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

Closed 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