Consulting

Results 1 to 4 of 4

Thread: Colour Of Selected Option

  1. #1
    VBAX Mentor
    Joined
    Aug 2020
    Location
    Hampshire
    Posts
    399
    Location

    Colour Of Selected Option

    I was wondering if there is a way to change the default selected colour of an OptionButton from black? I can change the background colour behind the text, but cannot see a way of changing the actual colour of the selected option.

    Thanks!

  2. #2
    VBAX Mentor
    Joined
    Aug 2020
    Location
    Hampshire
    Posts
    399
    Location
    I've been trawling the internet without any luck, so am resigned to the fact that this is not possible.

    I'm now checking to see if the colour behind the black dot can be changed, but to be honest, I doubt that this is possible either.

  3. #3
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,057
    Location
    Did you by any chance look at this Change Option Button forecolor | MrExcel Message Board where the fore colour was changed? The intent here was to show if an Option button had been used by changing its colour once it had been selected. Surely from this you can see that it may well be possible. To suggest you have scoured the internet with no luck, implies that you need to change your search engine.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  4. #4
    VBAX Mentor
    Joined
    Aug 2020
    Location
    Hampshire
    Posts
    399
    Location
    I had seen this one, thanks.

    The ForeColor option only changes the colour of the text of the selected option and not the actual selector. In web design this can easily be changed, but was wondering if the same could be true for VBA, similar to this as shown on the left.

    Radio.jpg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •