1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【VBA】オートシェイプにテキストを挿入する 

Posted at

すでにあるオートシェイプにテキストを入れる方法。
なかなか見つからなかったので自分用備忘録。

' 変数
Dim strShapeName as String
Dim strText as String

' 図形の名前(決めておいてください)
strShapeName = "SampleShp1"
' テキスト
strText = "Sample Text"

' 本処理
ActiveSheet.Shapes.Range(Array(strShapeName)).TextFrame2.TextRange.Characters.Text = strText
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?