Highlight Color in Excel Cells
Colorindex is used to color the background of Excel Cells
Cells(1, 2).Interior.ColorIndex = 30
etc
Here is the entire list of colors you can use:
RSS Feeds Submission Directory
Wednesday, June 13, 2007
Download Windows Live Toolbar and personalize your Web experience! Add custom buttons to get the information you care about most.
the ColorIndex property can be applied to other objects (eg Font, Border, Borders, FormatColor, Tab). right?
ReplyDeleteYes.
DeleteThanks but what is the code for blank (not white)?
ReplyDelete'pretty sure it's -4142
ReplyDeleteJust try it or do like me: record a new macro in Excel, and change the color of a cell or character, stop the macro and look at the result with Alt-F11 in Modules
blank (not white) equals -4142 (or xlColorIndexNone)
ReplyDeleteyou nutcase why would you need a code for no fill? time waster!!!!
ReplyDeleteIf you have already colored a sheet or cell and you want to blank it. Nutcase...
Delete