KarmaStrikesBack
Supremacy Member
- Joined
- Mar 24, 2016
- Messages
- 8,975
- Reaction score
- 7
I have 2 shapes, 1 and 2.
My code is
If ActiveSheet.Shapes(“Shape 1”).Fill.ForeColor.RGB = RGB(0, 255, 0) Then
ActiveSheet.Shapes(“Shape 2”).Fill.ForeColor.RGB = RGB(255, 0, 0)
Else
ActiveSheet.Shapes(“Shape 2”).Fill.ForeColor.RGB = RGB(255, 255, 255)
End If
End Sub
However, i do not know how the code should start.
Whatever colour i changed Shape 1 to, Shape 2 does nothing. I have tried
sub worksheet_change(byval as blah blah blah)
My code is
If ActiveSheet.Shapes(“Shape 1”).Fill.ForeColor.RGB = RGB(0, 255, 0) Then
ActiveSheet.Shapes(“Shape 2”).Fill.ForeColor.RGB = RGB(255, 0, 0)
Else
ActiveSheet.Shapes(“Shape 2”).Fill.ForeColor.RGB = RGB(255, 255, 255)
End If
End Sub
However, i do not know how the code should start.
Whatever colour i changed Shape 1 to, Shape 2 does nothing. I have tried
sub worksheet_change(byval as blah blah blah)