View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
newbie newbie is offline
external usenet poster
 
Posts: 137
Default highlight with right click?

works like a dream. Thank you Norman.

"Norman Jones" wrote:

Hi Newbie,

Perhaps a the response to a double click would meet your needs?

Try:

'=============
Private Sub Worksheet_BeforeDoubleClick _
(ByVal Target As Range, Cancel As Boolean)
Target.Interior.ColorIndex = 6 '<<== CHANGE
End Sub
'<<=============

This is worksheet event code and should be pasted into the worksheets's code
module (not a standard module and not the workbook's ThisWorkbook module):

Right-click the worksheet's tab
Select 'View Code' from the menu and paste the code.
Alt-F11 to return to Excel.


---
Regards,
Norman


"Newbie" wrote in message
...
is there a simple way to color a cell with a right click (excel2003) ?