Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Jul 2006
    Location
    New York City, New York, USA
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Remove Pattern from Shaperanges (2003)

    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

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Remove Pattern from Shaperanges (2003)

    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.

  3. #3
    Lounger
    Join Date
    Jul 2006
    Location
    New York City, New York, USA
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Remove Pattern from Shaperanges (2003)

    Thanks so much, Hans. That's perfect.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •