Sub rff()
On Error Resume Next
Dim s As Shape
ActiveDocument.BeginCommandGroup "Rainbow fountain fill"
For Each s In ActiveSelection.Shapes
With s.Fill.ApplyFountainFill(CreateCMYKColor(100, 0, 0, 0), CreateCMYKColor(100, 0, 0, 0))
.Type = cdrConicalFountainFill
.SpreadMethod = cdrFountainFillSpreadMethodPad
.Colors.Add CreateCMYKColor(100, 0, 100, 0), 100 / 6
.Colors.Add CreateCMYKColor(0, 0, 100, 0), 200 / 6
.Colors.Add CreateCMYKColor(0, 100, 100, 0), 300 / 6
.Colors.Add CreateCMYKColor(0, 100, 0, 0), 400 / 6
.Colors.Add CreateCMYKColor(100, 100, 0, 0), 500 / 6
End With
Next s
ActiveDocument.EndCommandGroup
End Sub