PowerPoint VBA教程:PlaceholderFormat对象

Shapes (Shape)
PlaceholderFormat

包含专门应用于占位符的属性,例如占位符类型。

使用 PlaceholderFormat对象

使用PlaceholderFormat属性返回 PlaceholderFormat对象。如果当前演示文稿第一张幻灯片的第一个占位符存在并且是水平标题占位符,以下示例在该占位符中添加文本。


With ActivePresentation.Slides(1).Shapes.Placeholders
    If .Count > 0 Then
        With .Item(1)
            Select Case .PlaceholderFormat.Type
                Case ppPlaceholderTitle
                    .TextFrame.TextRange = "Title Text"
                Case ppPlaceholderCenterTitle
                    .TextFrame.TextRange = "Centered Title Text"
                Case Else
                    MsgBox "There's no horizontal " _
                        "title on this slide"
            End Select
        End With
    End If
End With

上页:PowerPoint VBA教程:PictureFormat对象 下页:PowerPoint VBA教程:Placeholders集合对象

PowerPoint VBA教程:PlaceholderFormat对象

PowerPoint VBA教程:Placeholders集合对象 PowerPoint VBA教程:PlaySettings对象
PowerPoint VBA教程:Presentation对象 PowerPoint VBA教程:Presentations集合对象
PowerPoint VBA教程:PrintOptions对象 PowerPoint VBA教程:PrintRange对象
PowerPoint VBA教程:PrintRanges集合对象 PowerPoint VBA教程:PropertyEffect对象
PowerPoint VBA教程:PublishObject对象 PowerPoint VBA教程:PublishObjects集合对象
PowerPoint VBA教程:RGBColor对象 PowerPoint VBA教程:RotationEffect对象
PowerPoint VBA教程:Row对象 PowerPoint VBA教程:Rows集合对象
PowerPoint VBA教程:Ruler对象 PowerPoint VBA教程:RulerLevel对象
PowerPoint VBA教程:RulerLevels集合对象 PowerPoint VBA教程:ScaleEffect对象
PowerPoint VBA教程:Selection对象 PowerPoint VBA教程:Sequence集合
版权所有 © 中山市飞娥软件工作室 证书:粤ICP备09170368号