Thank you for your prompt response. The following were the steps I took for testing.
(1) I inserted Debug.Print in my code for debugging (see below).
(2) I updated one cell value to "Have a plan (Yellow)" in the linked SharePoint list.
(3) I clicked "Synchronized icon" in the Excel sheet.
(4) The run time error occurred and debug pointer is pointing the line -> Case "Not Feasible/Applicable (Black)". I assume that this is the first line of "Select Case" section". Immediate window shows: "Have a plan (Yellow)".
I appreciate if you could help me on this error.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim icolor As Integer
If Not Intersect(Target, Range("W1:CS200")) Is Nothing Then
Select Case Target
Case "Not Feasible/Applicable (Black)"
icolor = 1
Debug.Print "Not Feasible/Applicable (Black)"
Case "No Plan Available (Red)"
icolor = 3
Debug.Print "No Plan Available (Red)"
Case "Have a plan (Yellow)"
icolor = 6
Debug.Print "Have a plan (Yellow)"
Case "Need Help (Pink)"
icolor = 7
Debug.Print "Need Help (Pink)"
Case "Implemented (Green)"
icolor = 50
Debug.Print "Implemented (Green)"
Case Else
'Do nothing
End Select
Target.Interior.ColorIndex = icolor
End If
End Sub