I know you posted in the VBA forum, but, you know, teach a man to fish and all that....
Turn on your macro recorder (
Tools > Macros > Record New Macro) and do the conditional formatting the way you want. Observe the code that was generated.
Here's how you'll do what you want (without VBA because the macro recorder will pick that up for you):
- Select Columns F:J - make sure that row 1 is the active cell (the one that doesn't appear to be shaded like all the other selected cells)
- Go to
Format > Conditional Formatting
- Change the first box to
Formula Is
- Type in [COLOR=blue white]=IsNumber(Search("total",$A1))[/color]
- Select
Format
- Go to the
Patterns tab
- Select whatever color you want to highlight the cells (I recommend the light yellow - easier on the eyes than bright yellow)
That's it. Now look at the code that was generated.
*NOTE: The Find function is case-sensitive, the Search function is not.
[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]
Help us help you. Please read
FAQ 181-2886 before posting.