I created a spreadsheet that tracks the status of video conferences. The details of each video conference all feed into one master sheet that is used to manage all of these video conferences. The master sheet has a column that lists the status of each conference. [Pending, Connected, Timed Off, Ended and Pending]. I wanted to find a way to have each tab change color based on the status of the video conference on the master sheet. The code below worked, but would only change the tab color once and only for the first 3 statuses listed above. CAn anyone help me edit this code to change the tab color everytime the status on the master sheet changes?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
MyVal = Range("'FLIGHT PLAN'!S3").Text
With ActiveSheet.Tab
Select Case MyVal
Case "Pending"
.Color = vbOrange
Case "Connected"
.Color = vbGreen
Case "Timed Off"
.Color = vbRed
Case "Ended"
.Color = vbGray
Case "Processed"
.Color = vbBlue
Case Else
.ColorIndex = xlColorIndexNone
End Select
End With
End Sub