I use this code to highlight the sheet's active cell:
VB Code:
  1. Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range)
  2.     Static OldRange As Range
  3.     On Error Resume Next
  4.     Target.Interior.ColorIndex = 6 ' yellow - change as needed
  5.     OldRange.Interior.ColorIndex = xlColorIndexNone
  6.     Set OldRange = Target
  7. End Sub
that I found here.

All the cells in my sheet are white (default) except for a few in various other colours. Anyone knows how to modify the code so that the old colour is restablished after the cell is no longer actove?