Sub Test() Dim sr As New ShapeRange Dim n As Long For n = 1 To 10 sr.Add ActiveLayer.CreateEllipse2(Rnd() * 8, Rnd() * 11, 0.5) Next n sr.ApplyUniformFill CreateRGBColor(255, 0, 0) sr.Group sr.RemoveAll For n = 1 To 10 sr.Add ActiveLayer.CreateRectangle2(Rnd() * 8, Rnd() * 11, 1, 1) Next n sr.ApplyUniformFill CreateRGBColor(255, 255, 0) sr.GroupEnd Sub