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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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
 
Upvote 0

Forum statistics

Threads
1,213,565
Messages
6,114,338
Members
448,570
Latest member
rik81h

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
Back
Top