Hello,
any idea how i could color fill a custom shape created by individual lines which are grouped together? The group behaves as one shape alright when, say, coloring the line, but is not "fillable". Below a simple sample. - The custom shape i am trying to color in is not a simple square or rectangle -not anything from the existing MS shapes that is.
Thank you,
Stefan
Code
Option Explicit
Sub Macro1()
ActiveSheet.Shapes.AddLine(48#, 25.5, 144.75, 25.5).Select
Selection.Name = "aLine"
ActiveSheet.Shapes.AddLine(144.75, 25.5, 144.75, 102.75).Select
Selection.Name = "bLine"
ActiveSheet.Shapes.AddLine(48#, 102.75, 144.75, 102.75).Select
Selection.ShapeRange.Flip msoFlipHorizontal
Selection.Name = "cLine"
ActiveSheet.Shapes.AddLine(48#, 25.5, 48#, 102.75).Select
Selection.ShapeRange.Flip msoFlipVertical
Selection.Name = "dLine"
ActiveSheet.Shapes.Range(Array("aLine", "bLine", "cLine", "dLine")).Select
Selection.ShapeRange.Group.Select
Selection.Name = "AllLines"
End Sub
Display More