Quote Originally Posted by RobDog888
Save the range to a module level range variable object. Then update it in the event. Set your range variable interior color back to default, set the new range to the color 6, then update the range variable object for the next event so you will know which range to reset.
It works as you say, indeed. Thank you.
VB Code:
  1. 'In a module
  2. Global oldrng As Range
  3. Global oldcol As Long
  4. 'In ThisWorkbook
  5. Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range)
  6.     On Error Resume Next
  7.     oldrng.Interior.ColorIndex = oldcol
  8.     oldcol = Target.Interior.ColorIndex
  9.     Target.Interior.ColorIndex = 6 ' yellow or whatever
  10.     Set oldrng = Target
  11. End Sub