+ Reply to Thread
Results 1 to 4 of 4

Changeing Combobox Colors based on other combobox selections

  1. #1
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Changeing Combobox Colors based on other combobox selections

    Im using the following code in a VBA project:

    Please Login or Register  to view this content.
    I tried modifying it as follows so that when something is selected from this combobox the next combobox changes color but it doesnt work:

    Please Login or Register  to view this content.
    Any suggestions??
    Last edited by dagindi; 05-15-2012 at 11:40 AM.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Changeing Combobox Colors based on other combobox selections

    maybe so
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-04-2012
    Location
    Stamford,Connecticut,USA
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Changeing Combobox Colors based on other combobox selections

    Try this:
    Private Sub ComboBox1_Change()
    Select Case Me.ComboBox1.Value
    Case "": Me.ComboBox1.BackColor = vbGreen
    Me.ComboBox2.BackColor = vbBlue
    End Select
    End Sub

  4. #4
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Re: Changeing Combobox Colors based on other combobox selections

    Nilem\Raul,

    Thanks for the quick responses. I went with Nilem's response (since it came in first) and it worked perfectly.

    Thanks to both of you!!

+ 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