This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' needs to be added into the worksheet "module" and not in a separate module | |
Public LastCell | |
Private Sub Worksheet_SelectionChange(ByVal Target As Range) | |
If (Not (LastCell = "")) Then | |
Range(LastCell).EntireRow.Interior.Color = RGB(58, 56, 56) | |
End If | |
LastCell = ActiveCell.Address | |
ActiveCell.EntireRow.Interior.Color = RGB(38, 38, 38) |