【テキストボックス作成】


Dim spTxtBox As Shape
Set spTxtBox = shTrgtSht.Shapes.AddTextbox( _
                    Orientation:=msoTextOrientationHorizontal, _
                    Left:=10, _
                    Top:=10, _
                    Width:=10, _
                    Height:=10 _
               )
With spTxtBox
    .TextFrame.Characters.Text = "エラーフレームなし"
    .TextFrame.AutoSize = True
End With
 

最終更新:2015年04月10日 18:12