View Single Post
Old 08-27-2008, 01:37 PM   #7 (permalink)
Zweiblumen
Insane
 
Location: at home
Here is a VBA code that you can use as a base for a macro that will do eXtendedConditionalFormatting.

Sub XconFormat()
Select Case LCase(ActiveCell.Text)
Case "sale"
ActiveCell.Font.Color = vbRed
ActiveCell.Font.Background = vbYellow
Case "cash"
ActiveCell.Font.Color = vbBlue
ActiveCell.Font.Background = vbGreen
End Select

End Sub


Just add Case "text" clauses as needed.


Yours
Zweiblumen
__________________
Sodomy non sapiens. : I'm buggered if I know
Zweiblumen is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52