Using a custom colour palette

cdhoughton

Board Regular
Joined
Dec 5, 2003
Messages
170
Hi all,

I have a form with a combo box and loads of buttons. I am trying to change the colour of all the buttons according to the combo box. If some of you have read my earlier posts I now know how to do this in principal!

However, is there any way, to improve the appearance of the form, of populating the combo box automatically using the default palette? Let me elaborate:

Ideally, the combo box will have a little colour square exactly like the palette in VBA and its name, and then when the user selects the colour in the box all the text on the buttons change colour.

Any ideas of a quick way around this (without populating using all the hex codes manually typed in)???
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Greg Truby

MrExcel MVP
Joined
Jun 19, 2002
Messages
10,022
Not sure, but this might help? In this thread, I posted a subroutine that puts the pallet in cells in the same layout as the Excel default pallet. At least it gives you the sequence you'd need.

HTH
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,159
Messages
5,768,523
Members
425,479
Latest member
Neerajcool

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top