22.12.2022, 05:33
Diese Sub funktioniert nicht:
ActiveSheet.Shapes.Range(Array("Rounded Rectangle 1", "Rounded Rectangle 29" _
, "Rounded Rectangle 31", "Rounded Rectangle 32", "Rounded Rectangle 33", _
"Rounded Rectangle 34", "Rounded Rectangle 40", "Rounded Rectangle 39", _
"Rounded Rectangle 38", "Rounded Rectangle 37", "Rounded Rectangle 36", _
"Rounded Rectangle 35", "Rounded Rectangle 41", "Rounded Rectangle 42", _
"Rounded Rectangle 43", "Rounded Rectangle 44", "Rounded Rectangle 45", _
"Rounded Rectangle 46", "Rounded Rectangle 52", "Rounded Rectangle 51", _
"Rounded Rectangle 50", "Rounded Rectangle 49", "Rounded Rectangle 48", _
"Rounded Rectangle 47")).Select
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.Fill.Visible = msoFalse
Diese schon:
ActiveSheet.Shapes.Range(Array("Rounded Rectangle 1")).Select
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.Fill.Visible = msoFalse
ActiveSheet.Shapes.Range(Array("Rounded Rectangle 29")).Select
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.Fill.Visible = msoFalse
Also kannn ich die ganzen Rectangles nicht aufzählen und dann alle behandeln mit Line- und Fill Visible?
Beim 1. Beispiel wird Line Visible False gar nicht gesetzt.
ActiveSheet.Shapes.Range(Array("Rounded Rectangle 1", "Rounded Rectangle 29" _
, "Rounded Rectangle 31", "Rounded Rectangle 32", "Rounded Rectangle 33", _
"Rounded Rectangle 34", "Rounded Rectangle 40", "Rounded Rectangle 39", _
"Rounded Rectangle 38", "Rounded Rectangle 37", "Rounded Rectangle 36", _
"Rounded Rectangle 35", "Rounded Rectangle 41", "Rounded Rectangle 42", _
"Rounded Rectangle 43", "Rounded Rectangle 44", "Rounded Rectangle 45", _
"Rounded Rectangle 46", "Rounded Rectangle 52", "Rounded Rectangle 51", _
"Rounded Rectangle 50", "Rounded Rectangle 49", "Rounded Rectangle 48", _
"Rounded Rectangle 47")).Select
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.Fill.Visible = msoFalse
Diese schon:
ActiveSheet.Shapes.Range(Array("Rounded Rectangle 1")).Select
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.Fill.Visible = msoFalse
ActiveSheet.Shapes.Range(Array("Rounded Rectangle 29")).Select
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.Fill.Visible = msoFalse
Also kannn ich die ganzen Rectangles nicht aufzählen und dann alle behandeln mit Line- und Fill Visible?
Beim 1. Beispiel wird Line Visible False gar nicht gesetzt.