• Remove Pattern from Shaperanges (2003)

    Author
    Topic
    #441796

    Hi All,
    I have many sets of grouped shapes in a book. Each group originally consisted of shapes with differing solid fill colors. After these objects were grouped, a pattern was applied to each group.
    I would now like to return them to the solid fills they had before they were grouped.
    Is there a way via VBA to turn off a pattern for a shaperange, such that each element of that shaperange has the distinct fill color that it had before the pattern was applied?
    Thanks a lot

    Viewing 0 reply threads
    Author
    Replies
    • #1061660

      Does this do what you want?

      Sub RemovePattern()
      Dim shp As Shape
      For Each shp In ActiveSheet.Shapes
      shp.Fill.Solid
      Next shp
      End Sub

      Note: test it on a copy of the workbook first.

    Viewing 0 reply threads
    Reply To: Remove Pattern from Shaperanges (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: