ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Query on Cell (https://www.excelbanter.com/excel-discussion-misc-queries/168822-query-cell.html)

VIVEKMANE

Query on Cell
 
Is there any formula for : If we click on cell that cell should change its
color automatically.......

Please reply.......................

Gary''s Student

Query on Cell
 
Try this simple worksheet event macro:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
ActiveCell.Interior.ColorIndex = 6
End Sub

REMEMBER: This goes in the worksheet code area, not a standatd module.
--
Gary''s Student - gsnu200760


"VIVEKMANE" wrote:

Is there any formula for : If we click on cell that cell should change its
color automatically.......

Please reply.......................



All times are GMT +1. The time now is 08:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com