Code:
user = Array("user1", "User2", "User3")
For Each Cell In Range("D2:D" & lastRow)
If Cell.Value = user Then
If Cell.Offset(0, -2).Value = "Account Team Reporting" Then
Cell.Offset(0, -2).Font.ColorIndex = 1
ElseIf Cell.Offset(0, -2).Value = "Demand Generation Funds" Then Cell.Offset(0, -2).Font.ColorIndex = 1
ElseIf Cell.Offset(0, -2).Value = "Demo Day Process" Then Cell.Offset(0, -2).Font.ColorIndex = 1
ElseIf Cell.Offset(0, -2).Value = "Meet Comp Process" Then Cell.Offset(0, -2).Font.ColorIndex = 1
ElseIf Cell.Offset(0, -2).Value = "National Program Support" Then Cell.Offset(0, -2).Font.ColorIndex = 1
ElseIf Cell.Offset(0, -2).Value = "New Product Introductions" Then Cell.Offset(0, -2).Font.ColorIndex = 1
ElseIf Cell.Offset(0, -2).Value = "Partner Portal Support" Then Cell.Offset(0, -2).Font.ColorIndex = 1
ElseIf Cell.Offset(0, -2).Value = "Meeting" Then Cell.Offset(0, -2).Font.ColorIndex = 1
ElseIf Cell.Offset(0, -2).Value = "Out of Office" Then Cell.Offset(0, -2).Font.ColorIndex = 1
Else: Cell.Offset(0, -2).Font.ColorIndex = 3
End If
Else: Cell.Offset(0, -2).Font.ColorIndex = 7
End If
Next Cell
I'm having trouble coding this array. Of course, I never actually used arrays in VBA so that might have something to do with it, lol.
Does anyone have any tips, or resources they can share with me to help solve this?