Skip to content

Instantly share code, notes, and snippets.

/vb

Created June 25, 2017 15:45
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("F7")) Is Nothing Then Exit Sub
If IsNumeric(Target.Value) Then
If Target.Value >= 0 And Target.Value < 80 Then
Shapes("Trafo").Fill.ForeColor.RGB = vbWhite
ElseIf Target.Value >= 80 And Target.Value < 100 Then
Shapes("Trafo").Fill.ForeColor.RGB = vbYellow
Else
Shapes("Trafo").Fill.ForeColor.RGB = vbRed
End If
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment