Menuへ
msoShapeLineCallout3    オートシェイプをVBAで作成   

斜め線の吹き出しの図形ができます。




コード
Sub ExMakeShape()
    Dim tshape As Shape
    
    With ActiveSheet.Range("D14:E20")
        Set tshape = ActiveSheet.Shapes.AddShape(Type:=msoShapeLineCallout3, Left:=.Left, Top:=.Top, Width:=.Width, Height:=.Height)
        tshape.Name = "シェイプLineCallout3"
    End With
    Set tshape = Nothing
End Sub

Private Sub CommandButton2_Click()
    ExMakeShape
End Sub


実行画面



Topへ