A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
Assuming that you set the colors in advance to *specific* values, you can do something like this:
Function ColorToString(osh As Shape) As String
With osh.Fill.ForeColor
If .RGB = RGB(255, 0, 0) Then
ColorToString = "RED"
End If
If .RGB = RGB(0, 255, 0) Then
ColorToString = "GREEN"
End If
If .RGB = RGB(0, 0, 255) Then
ColorToString = "BLUE"
End If
End With
End Function
Sub TestMe()
Dim osh As Shape
For Each osh In ActiveWindow.Selection.ShapeRange
Debug.Print ColorToString(osh)
Next
End Sub