Ok, to be more specific: I have following very simple (quickly written) "enhancement" macro to help me with orientation in Excel sheets:
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
Application.ScreenUpdating = False
Cells.Interior.Pattern = xlPatternNone
Cells.Interior.PatternColorIndex = xlColorIndexNone
With Target
.EntireRow.Interior.Pattern = xlPatternGray50
.EntireRow.Interior.PatternColorIndex = 35
.EntireColumn.Interior.Pattern = xlPatternGray50
.EntireColumn.Interior.PatternColorIndex = 35
End With
Application.ScreenUpdating = True
End Sub
which works fine until I start to use workbooks with colored cells (which is not so often in case of "data-output workbooks" compared to "office workbooks", but...). If you test it, it will make my needs clear.
Bookmarks