by Allen Wyatt
(last updated June 27, 2014)
Jerri is trying to reference rather simple colors in a macro. In older versions of Excel the color references were understandable, but she's having problems with colors since the introduction of themes. If she records a macro, she gets references to various properties, such as Pattern, PatternColorIndex, TintAndShade, PatternTintAndShade, and ThemeColor. Jerri can't make sense of these and wonders if there is a good reference available that provides the background information she needs to work with colors in a macro.
You aren't alone, Jerri. The new color schemes introduced in Excel 2007 seem to baffle many people. The simple approach to colors used in older versions of Excel is gone, and the new approach doesn't seem to have any humanly discernable rhyme or reason. Doing simple searches at Microsoft doesn't turn up any helpful information. For instance, a search of Microsoft online support for PatternTintAndShade (which should get right to the heart of the matter) returns nothing—and this is three years after Excel 2007 was released! A wider search for the same word, looking at all of Microsoft.com, returns something only marginally more useful; it returns a page that describes the PatternTintAndShade property as a property that "returns or sets a tint and shade pattern." The reaction that comes to mind is "well, duh!"
In searching around the web there are lots of questions that crop up very similar to yours and precious few answers. There was one site that has a bit of useful information and is well worth reading:
Sorry about the long URL; you'll want to make sure you get it all. Perhaps, as time goes on, more information will come available.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (7883) applies to Microsoft Excel 2007.
Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!
Knowing of a workbook is already open can be a prerequisite to your macro working correctly. Here's how to check it out.Discover More
Need to know how to generate a full month name based on a date? It's easy to do, as discussed in this tip.Discover More
When creating macros, it is often necessary to change from one type of data to another. Here's how you can change from a ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.