Single click event

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
 
M

Mike Ogden

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top