|
Dim shp As Shape, GG As Range
On Error Resume Next
Set GG = Application.InputBox(Prompt:="コメント。", Title:="タイトル", _
Default:=ActiveCell.Address, Type:=8)
If GG Is Nothing Then
Exit Sub
End If
On Error GoTo 0
If GG Is Nothing Then Exit Sub
横位置 = GG.Left
縦位置 = GG.Top
幅 = GG.Width
高さ = GG.Height
Set shp = ActiveSheet.Shapes.AddTextbox _
(msoTextOrientationHorizontal, 横位置, 縦位置, 幅, 高さ)
'ここから下はよく解りませんん。
' (msoTextOrientationHorizontal, 横位置, 縦位置, 幅, 高さ)
' With shp
' .Line.Visible = msoTrue
' .SetShapesDefaultProperties
' '.Delete
' End With
' Application.CommandBars("Drawing").Controls(9).Execute
|
|