Thanks for your patience....let me ask a different way...Do you want the tab colour removed if you clear any cell?
Appears none of the sheets extend out to BAI would have to use a helper cell to keep track of the number of changes you make. What is the last used column in your sheets?
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Application.EnableEvents = False
If Target <> "" Then
Range("BC1").Value = Range("BC1").Value + 1
ActiveSheet.Tab.Color = vbRed
Else
Range("BC1") = Range("BC1") - 1
If Range("BC1") = 0 Then
ActiveSheet.Tab.Color = xlNone
End If
End If
Application.EnableEvents = True
End Sub
Hmm? sorry, I appear to be getting out of my league. However I did return to your original code which worked well...but now it doesn't work??Try:
VBA Code:Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) Application.EnableEvents = False If Target <> "" Then Range("BC1").Value = Range("BC1").Value + 1 ActiveSheet.Tab.Color = vbRed Else Range("BC1") = Range("BC1") - 1 If Range("BC1") = 0 Then ActiveSheet.Tab.Color = xlNone End If End If Application.EnableEvents = True End Sub
That did it!! Thanks much for the help and patience. I will just open file and "save as" a new file b4 editing.....then when I reopen the original file, the tabs will already be white>Try closing and restarting Excel.