【发布时间】:2016-12-08 13:52:38
【问题描述】:
我有一个箭头,当我点击它时,应该会出现一个云形状。这现在工作正常。我现在想要的是,如果我再次单击相同的按钮,云应该会消失。我想我需要让我的云成为一个对象,以及它的状态或其他东西,但我还没有弄清楚如何......这是我的代码:
子气泡()
ActiveSheet.Shapes.AddShape(msoShapeCloudCallout, 795, 8.25, 107.25, 41.25). _
Select
Selection.ShapeRange.Adjustments.Item(1) = -0.25029
Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = "text..."
With Selection.ShapeRange(1).TextFrame2.TextRange.Characters(1, 10). _
ParagraphFormat
.FirstLineIndent = 0
.Alignment = msoAlignLeft
End With
With Selection.ShapeRange(1).TextFrame2.TextRange.Characters(1, 10).Font
.NameComplexScript = "+mn-cs"
.NameFarEast = "+mn-ea"
.Fill.Visible = msoTrue
.Fill.ForeColor.ObjectThemeColor = msoThemeColorLight1
.Fill.ForeColor.TintAndShade = 0
.Fill.ForeColor.Brightness = 0
.Fill.Transparency = 0
.Fill.Solid
.Size = 11
.Name = "+mn-lt"
End With
Range("P5").Select
结束子
【问题讨论】: