Can anybody tell me what is wrong with this? I must be missing something very, very simple...
Code
Sub BlueShading()
If Selection.Font.Color = RGB(255, 255, 255) Or Selection.Font.ColorIndex = -4105 Then 'White or Automatic
Selection.Font.Color = RGB(0, 0, 0)
Selection.Interior.ColorIndex = xlNone
Selection.Font.Bold = False
ElseIf Selection.Font.Color = RGB(0, 0, 0) Then 'Black
Selection.Font.Color = RGB(255, 255, 255)
Selection.Interior.Color = RGB(0, 28, 92)
Selection.Font.Bold = True
End If
End Sub
Display More