Hi,
thank you very much for this.
This is actually the same conditional formatting rule + VBA I have been using the last 2 years.
I got it from The Excel Forum.
The only problem with it was that it started to make the workbook slow and moving around became almost impossible without the sheet lagging.
That's why I tried to find another way to solve it.
This VBA without formatting is working, but this one is removing all colour. That is a problem.
VBA:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
Dim rRow As Range, rCol As Ranges
If Range("A1") = "" Then
Range("A1") = Target.Address
End If
With Range(Range("A1"))
.EntireColumn.Interior.ColorIndex = 0
.EntireRow.Interior.ColorIndex = 0
End With
Target.EntireRow.Interior.ColorIndex = 15
Target.EntireColumn.Interior.ColorIndex = 15
Range("A1").Value = Target.Address
End Sub