Query on Cell

  • Thread starter Thread starter VIVEKMANE
  • Start date Start date
V

VIVEKMANE

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

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

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

Back
Top