Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code is not working ....

Status
Not open for further replies.

wmbb

Technical User
Jul 17, 2005
320
NL
I want to run the code below when a value is changed in a worksheet.
I want the changed cell to color blue, but nothing happens when a cell value is entered...

Can somebody tell me why ?

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Target.Font.ColorIndex = 5
End Sub
 
Text in the cell does change to [blue]blue[/blue] when I run your code (Excel 2010 on Win 7)


Have fun.

---- Andy
 
Thanks for your support.
I had writen the code in module1 and it should be in the sheet code.
The problem is solved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top