- Joined
- Jun 7, 2019
- Messages
- 2
- Reaction score
- 0
I am trying to get a shape to flip through 4 colors on click when in present mode on powerpoint. I have used this code below, and it works for flipping between 2 colors. I've tried multiple edits/additions and I can't seem to get it to work for 4 different colors. If anyone can help me see what I am not doing correctly I would be most appreciative. Thanks!
Sub FlipColor(oShp As Shape)
If oShp.Fill.ForeColor.RGB = vbBlue Then
oShp.Fill.ForeColor.RGB = vbRed
Else
oShp.Fill.ForeColor.RGB = vbBlue
End If
End Sub
Sub FlipColor(oShp As Shape)
If oShp.Fill.ForeColor.RGB = vbBlue Then
oShp.Fill.ForeColor.RGB = vbRed
Else
oShp.Fill.ForeColor.RGB = vbBlue
End If
End Sub