[COLOR=darkblue]Private[/COLOR] [COLOR=darkblue]Sub[/COLOR] Worksheet_Change([COLOR=darkblue]ByVal[/COLOR] Target [COLOR=darkblue]As[/COLOR] Range)
[COLOR=darkblue]Dim[/COLOR] myDay [COLOR=darkblue]As[/COLOR] [COLOR=darkblue]Integer[/COLOR]
[COLOR=green]'only trigger if cell A1 changes[/COLOR]
[COLOR=darkblue]If[/COLOR] Target.Address <> "$A$1" [COLOR=darkblue]Then[/COLOR] [COLOR=darkblue]Exit[/COLOR] [COLOR=darkblue]Sub[/COLOR]
[COLOR=green]'weekday() 1=Sunday, 2=Monday, etc[/COLOR]
myDay = Weekday(CDate(Range("A1").Value))
[COLOR=darkblue]Select[/COLOR] [COLOR=darkblue]Case[/COLOR] myDay
[COLOR=darkblue]Case[/COLOR] vbThursday, vbFriday
Me.Tab.ColorIndex = 4 [COLOR=green]'green[/COLOR]
[COLOR=darkblue]Case[/COLOR] [COLOR=darkblue]Else[/COLOR]
Me.Tab.ColorIndex = 5 [COLOR=green]'blue[/COLOR]
[COLOR=darkblue]End[/COLOR] [COLOR=darkblue]Select[/COLOR]
[COLOR=darkblue]End[/COLOR] [COLOR=darkblue]Sub[/COLOR]