+ Reply to Thread
Results 1 to 15 of 15

User change background colour of ActiveX Combo Box

  1. #1
    Forum Contributor
    Join Date
    04-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 365
    Posts
    125

    User change background colour of ActiveX Combo Box

    I have a need for the user to be able to change the colour of the background on an ActiveX Combo Box. There are about 20 Combo boxes on the sheet.

    My preference would be for there to be a colour palette of say, 12 colours, that the user could choose from.
    Double click the colour of choice and then click the particular ActiveX combo box and the background would change colour.

    Does anyone think this could be done.

    Thank you

    Yoepy.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Question Re: User change background colour of ActiveX Combo Box


    Why not using directly what Excel offers so w/o VBA ?!

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: User change background colour of ActiveX Combo Box

    Ooh, you are such a tease, Marc!

    Why not share the way to do this without VBA? I think it fair to assume that the OP does not realise what you know, otherwise they'd be using your method already.

    More information, please. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor
    Join Date
    04-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 365
    Posts
    125

    Re: User change background colour of ActiveX Combo Box

    I'm not talking about changing the colour once. I want the user to be able to colour code based on their circumstances. The Combo box is protected and the user is inexperienced.

    Using the properties is completely impractical. Sorry I asked.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: User change background colour of ActiveX Combo Box

    Don't apologise - you have nothing to apologise for. Just hang on in here - someone with VBA skills will come along and help soon, I'm sure.

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Oh ♪ come on Eileen ♫ !

    If helpers can't ask any question so many threads without solution …

    And I forgot to mention that is not such a great idea to use ActiveX instead of Forms Controls !

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: User change background colour of ActiveX Combo Box

    We all ask questions to elicit more information in order to be able to help and move a thread forward. Your question was not that type of question.

    Given that your response implies that you know how this can be done, I would have expected you to do one of the following:

    1. Explain HOW this can be done WITHOUT VBA.
    2. Explain HOW this can be done WITH VBA (with the caveat regarding ActiveX).

    The response you gave did not move the thread forward in any way. It's not the first time you've responded in this way or been asked to give more detail.

    I am not at all surprised at the OP's reaction to your response.

  8. #8
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: User change background colour of ActiveX Combo Box


    Ma douce Ali,

    according to post #4 the OP already knows how to do it directly under Excel.

    According to the poor initial post there is not enough 'material' to help without questions
    and as I won't try to guess anything, a bit like « no arm, no chocolate ! » …

    And as it's well known ActiveX can be a mess, it's 'safer' to use Forms control.

    But I'm sure another helper will post a generic code the OP will have to amend to fit his need …

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: User change background colour of ActiveX Combo Box

    Yes, I am sure that another VBA expert will offer the help he/she needs.

  10. #10
    Forum Contributor
    Join Date
    04-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 365
    Posts
    125

    Re: User change background colour of ActiveX Combo Box

    Can't change font size on Forms control Combo Box. Font is way too small for the application.

  11. #11
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow


    Yes some Forms controls are limited but always work, no surprise between computers, OS versions, Windows update, …

  12. #12
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    Re: User change background colour of ActiveX Combo Box

    give the attached a trial - double click in a combobox to select - a colour swatch will appear - click on colour - combobox background should change.
    code needs tidying up but the basics are there.
    torachan.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    04-16-2014
    Location
    Australia
    MS-Off Ver
    Excel 365
    Posts
    125

    Re: User change background colour of ActiveX Combo Box

    Absolutely perfect!!!

    Exactly what I wanted.

    I really appreciate your input torachan.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: User change background colour of ActiveX Combo Box

    Glad you got the help you were looking for.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  15. #15
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    Re: User change background colour of ActiveX Combo Box

    thanks for the feedback.
    glad to have helped.
    torachan.

+ 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. [SOLVED] change of font colour or background colour vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-22-2014, 08:20 PM
  2. Change background color an activeX check box beyond the standard palette
    By Tanner2004 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2013, 11:13 AM
  3. Replies: 5
    Last Post: 05-22-2013, 10:24 PM
  4. Combo Box- Background Colour
    By RichardR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2012, 04:07 AM
  5. change a cell background colour to my own RGB colour requirements
    By Stephen Doughty in forum Excel General
    Replies: 4
    Last Post: 06-16-2006, 08:15 AM
  6. [SOLVED] change background colour
    By cityfc in forum Excel General
    Replies: 1
    Last Post: 11-11-2005, 09:10 AM
  7. Combo box background colour
    By John Davies in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2005, 08:05 AM
  8. how do I change general background colour
    By RITA in forum Excel General
    Replies: 2
    Last Post: 02-01-2005, 01:06 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