Hi Everybody,
I need your smart help again.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GOAL:
I have data with different values and "na" spreaded on sheet.
If I change any value, color of the cell changes. But if there's "na"
value in the cell and I change it to another value, I don't want the
cell to be colored.

CODE:
Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveCell.Offset(1, 0).Value = "na" Then Exit Sub
Target.Interior.ColorIndex = 6
End Sub

PROBLEM:
The code doesn't go to Exit Sub if I change "na" value in the cell.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thank you,
Guzal


-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to