You are on page 1of 1

https://peltiertech.

com/removing-recent-colors-from-microsoft-excel/

1. Jon Peltier says

Thursday, March 19, 2015 at 12:47 pm

What I’ve done is build color chooser dialogs with colors I’ve prepopulated. The colors are
not adjustable by the user, but I can set up different set of colors for different users. It’s easy
enough to set up so it applies the color to whatever is the selected object (it doesn’t take a
“massive” amount of code).

However, you can add “Custom Colors” to a theme, which are additional colors beyond the
so called “Theme Colors” in the built-in color choosers. These appear below the theme
colors an another category with the “Standard Colors”. Unfortunately in Excel these can only
be used for shapes and chart elements, but those are a major place they are needed.

1. Jon Peltier says

Friday, March 20, 2015 at 1:07 pm

I’ve used a modeless dialog with a color picker and about three buttons, for fill, border, and
font. I select an object, pick a color, then click one of the three buttons, and the code figures
out what is needed to apply the color to the feature identified by the selection and the clicked
button. TypeName(Selection), plus code to color Line or Border, Fill or Interior, and Font.
The object selected could be a shape, a chart element, a cell, …

The dialog remains open to allow coloring additional objects, and closes when the user is
done.

You might also like