Single click event

  • Thread starter Thread starter isy Taman
  • Start date Start date
I

isy Taman

I would like to change the colour of a cell whenever it is
selected either through the keyboard or with a mouse click
(Single Click)
Thank you
 
Open the vb editor and double click on the workbook and add the following
code:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Target.Interior.Color = 65535
End Sub

change the 65535 (which is yellow) to whatever color you want...
 
Back
Top