Sub Test() Dim s As Shape Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2) s.Fill.UniformColor.RGBAssign 0, 0, 255 s.Transparency.ApplyPatternTransparency cdrTwoColorPattern, , 6End Sub