LinkFormat 对象 (PowerPoint)
包含应用于链接 OLE 对象、链接的图片和 IIRC 媒体对象的属性和方法。
示例
使用 LinkFormat 属性返回 LinkFormat 对象。 下面的示例循环访问当前演示文稿的所有幻灯片上的所有形状,并设置所有链接的 Microsoft Excel 工作表进行手动更新。
For Each sld In ActivePresentation.Slides
For Each sh In sld.Shapes
If sh.Type = msoLinkedOLEObject Then
If sh.OLEFormat.ProgID = "Excel.Sheet.12" Then
sh.LinkFormat.AutoUpdate = ppUpdateOptionManual
End If
End If
Next
Next
以下示例遍历当前演示文稿中所有幻灯片上的所有形状,并更新链接Microsoft Excel 图表,然后将其设置为自动更新。
For Each sld In ActivePresentation.Slides
For Each sh In sld.Shapes
If sh.HasChart Then
If sh.Chart.ChartData.IsLinked Then
Call sh.LinkFormat.Update
sh.LinkFormat.AutoUpdate = ppUpdateOptionAutomatic
End If
End If
Next
Next
方法
名称 |
---|
BreakLink |
更新 |
属性
名称 |
---|
Application |
AutoUpdate |
Parent |
SourceFullName |
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。