/vb
Created
June 25, 2017 15:45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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