Changing Drop down color options

kkernohan

Board Regular
Joined
May 7, 2010
Messages
53
I would like to make an Excel template with Standardized color options.

I have been looking and I have found some sort of VBA which changes the Color Palette using VBA

This should change the color right beside black to the color I desire, a specific blue.


Sub change_palette_color
dim color_index as long
color_index = 53
ActiveWorkbook.Colors(color_index) = RGB(22, 87, 136)
End sub




however after running this, the drop down menu for colors doesnt change. Is there a different way to change the default colors when you click the drop down menu for colors (ie. Home tab, Font, Fill Color drop down options)
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Here's a project I'm working on ATT. The only part that is not complete is the part that wqrites a couple of CodeModules. All the parts that manipulate colors and Palettes is done. It should give you plenty of help inre what you are doing.

http://www.4shared.com/file/6xdCmxiV/Playing_With_Colors.html


I suggest starting at "Sub ShowColors" in Module "b_Manipulating_Colors."

But, I don't see why your sub isn't working.

For fun, click on Sheet("StandardPalette") then ("CustomPalette"), followed by ("Example2"), then CustomPalette again :)
 
Upvote 0

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

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