shawleigh17
Board Regular
- Joined
- Nov 16, 2007
- Messages
- 79
hello,
I am trying to create a shape that covers a merged cell. This shape should have no fill, so that people can see the contents of the merged cell. Everytime I try to do this, the fill.visible = msoFalse does not seem to work, the white label is still on top of my merged cells. It seemed to work for a little while, but now the label is always filled. I had this problem before, too, when trying to create a label with a text box (the text box would never show), which is why I tried the "no fill" option. Here is the code:
I am trying to create a shape that covers a merged cell. This shape should have no fill, so that people can see the contents of the merged cell. Everytime I try to do this, the fill.visible = msoFalse does not seem to work, the white label is still on top of my merged cells. It seemed to work for a little while, but now the label is always filled. I had this problem before, too, when trying to create a label with a text box (the text box would never show), which is why I tried the "no fill" option. Here is the code:
Code:
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 1680#, 594#, 120#, 74.25). _
Select
Selection.Name = "Upload_Layout"
ActiveSheet.Shapes("Upload_Layout").Select
Selection.ShapeRange.Fill.Visible = msoFalse
Selection.ShapeRange.Fill.Solid
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 0.75
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoTrue
Selection.ShapeRange.Line.ForeColor.SchemeColor = 64
Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
Range("BB25").Select
ActiveSheet.Shapes("Upload_Layout").Select
Selection.ShapeRange.Fill.Visible = msoFalse