Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Single click event

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Single click event

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


"isy Taman" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change syperlink from single click to double click syperlinker Excel Worksheet Functions 0 June 13th 08 05:01 PM
Is Multi click Event possible? Ayo Excel Discussion (Misc queries) 6 August 31st 07 10:42 PM
On click button event [email protected] Excel Worksheet Functions 1 November 30th 06 04:39 PM
Click event on Scrollbar Sam K Excel Programming 1 July 21st 03 07:58 AM
Mouse Click Event Srinath Excel Programming 2 July 18th 03 04:03 AM


All times are GMT +1. The time now is 06:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"