Sub Test() Dim doc As Document Dim e1 As Shape, e2 As Shape, s As Shape Set doc = CreateDocument Set e1 = doc.ActiveLayer.CreateEllipse(0, 0, 2, 2) e1.Fill.UniformColor.RGBAssign 255, 0, 0 Set e2 = doc.ActiveLayer.CreateEllipse(4, 4, 5, 5) e2.Fill.UniformColor.RGBAssign 0, 0, 255 e1.CreateBlend e2 For Each s In doc.ActivePage.Shapes If s.Type = cdrBlendGroupShape Then With s.Effect.Blend .Steps = 5 .ColorBlendType = cdrRainbowCWFountainFillBlend End With End If Next sEnd Sub
Sub Test() Dim doc As Document Dim e1 As Shape, e2 As Shape, eff As Effect Set doc = CreateDocument Set e1 = doc.ActiveLayer.CreateEllipse(0, 0, 2, 2) e1.Fill.UniformColor.RGBAssign 255, 0, 0 Set e2 = doc.ActiveLayer.CreateEllipse(4, 4, 5, 5) e2.Fill.UniformColor.RGBAssign 0, 0, 255 Set eff = e1.CreateBlend(e2) eff.Blend.Steps = 5 eff.Blend.ColorBlendType = cdrRainbowCWFountainFillBlendEnd Sub
Sub Test() Dim doc As Document Dim e1 As Shape, e2 As Shape, eff As Effect Set doc = CreateDocument Set e1 = doc.ActiveLayer.CreateEllipse(0, 0, 2, 2) e1.Fill.UniformColor.RGBAssign 255, 0, 0 Set e2 = doc.ActiveLayer.CreateEllipse(4, 4, 5, 5) e2.Fill.UniformColor.RGBAssign 0, 0, 255 e1.CreateBlend e2, 5, cdrRainbowCWFountainFillBlendEnd Sub
Sub Test() Dim s As Shape For Each s In ActivePage.Shapes Select Case s.Type Case cdrExtrudeGroupShape s.Effect.Clear Case cdrBlendGroupShape s.Effect.Blend.Steps = 50 End Select Next sEnd Sub