Setting the Header Background and Text Colors
Overview
You can set the colors of the background and text in the headers. When you set the background and text colors for the headers, you set the colors for both the column headers and the row headers. The properties or methods that you use depend on the AppearanceStyle property. You can also set the colors for the sheet corner with the SetEnhancedCornerColors method.
Note: Headers are static text cells. If you change the background or text color and you have static text cells in your sheet that display a three-dimensional appearance, their background or text color will also change. |
Tip: If you want to change the background or text color of an individual header, in code at run time, change the cell type of that header to button and use the TypeButtonColor and TypeButtonTextColor properties to specify the background and text colors. |