Mary Frances
New Member
- Joined
- Jan 19, 2006
- Messages
- 8
I have created a workbook for our quotation process. If all the info is filled in for row 1, J1 has a formula that returns 0, if info is missing, J1 returns 1. All the rows are added into J70. If J70 is >0, something is missing. If J70<1 everything is filled in. The Sheet Tab is red. I found some code on a website that will turn the tab while if J70<1. To test, I deleted the formula in J70, the tab turns white. However, if I go through and fill out the form, thus making J70=0, the tab stays red. Here is the code I used:
Private Sub Worksheet_Change(ByVal Target As Range)
With Me
Select Case .Range("J70").Value
Case Is < 1
.Tab.ColorIndex = xlNone
Case Is > 0
.Tab.Color = vbRed
End Select
End With
End Sub
Could the reason be that J70 is volitle?
Private Sub Worksheet_Change(ByVal Target As Range)
With Me
Select Case .Range("J70").Value
Case Is < 1
.Tab.ColorIndex = xlNone
Case Is > 0
.Tab.Color = vbRed
End Select
End With
End Sub
Could the reason be that J70 is volitle?