トップページ(目次)

598.パワポにテキストボックスを追加する

<実行前後>
 → 
Sub パワポにテキストボックスを追加する()
    
    Set パワポ指定 = CreateObject("PowerPoint.Application").ActivePresentation
    
    ページ数 = 1
    
    Set スライド = パワポ指定.Slides(1)
    
    スライド.Select 'スライドを選択
    
    'テキストボックスを追加する(Left~Heightで挿入位置を調整)
    スライド.Shapes.AddTextbox(Orientation:=msoTextOrientationHorizontal, _
    Left:=100, _
    Top:=100, _
    Width:=200, _
    Height:=50). _
    TextFrame.TextRange.Text = "ここに追加したい文字列"

End Sub

Copyright © 2021 https://excel3000.web.fc2.com/ All Rights Reserved.
    inserted by FC2 system