次の方法で共有


PlaceholderFormat プロパティ

Microsoft PowerPoint Visual Basic リファレンス

PlaceholderFormat プロパティ

プレースホルダに対し固有のプロパティを含む PlaceholderFormat オブジェクトを取得します。値の取得のみ可能です。

使用例

次の使用例は、作業中のプレゼンテーションのスライド 1 のプレースホルダ 1 が横書きのタイトル プレースホルダである場合、そのプレースホルダにテキストを追加します。

With ActivePresentation.Slides(1).Shapes.Placeholders
    If .Count > 0 Then
        With .Item(1)
            Select Case .PlaceholderFormat.Type
                Case ppPlaceholderTitle
                    .TextFrame.TextRange = "タイトル テキスト"
                Case ppPlaceholderCenterTitle
                    .TextFrame.TextRange = "中央揃えのタイトル テキスト"
                Case Else
                    MsgBox "このスライドには横書きの" & _
                        "タイトルはありません。"
            End Select
        End With
    End If
End With