Hi All,
I need a bit of help here. I am trying to utilize the word "Vacant" to trigger a tab color change on my workbook based on a value entered on another sheet. The code works as intended when I enter "Vacant" in cell $DB$7 on the same sheet but, when that cell is linked to another sheet, the code no longer changes the tab color.
Any thoughts? Thanks in advance for your help.
I need a bit of help here. I am trying to utilize the word "Vacant" to trigger a tab color change on my workbook based on a value entered on another sheet. The code works as intended when I enter "Vacant" in cell $DB$7 on the same sheet but, when that cell is linked to another sheet, the code no longer changes the tab color.
Any thoughts? Thanks in advance for your help.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$DB$7" Then
Select Case Target.Text
Case "Vacant"
Me.Tab.Color = RGB(255, 76, 76)
Case "vacant"
Me.Tab.Color = RGB(255, 76, 76)
Case Else
Me.Tab.Color = RGB(255, 248, 66)
End Select
End If
End Sub