Hyperlink.SubAddress 属性 (PowerPoint)
返回或设置与指定超链接相关联的文档中的位置,例如 Word 文档中的书签、Microsoft Office Excel 工作表中的区域或 Microsoft PowerPoint 演示文稿中的幻灯片。 读/写。
语法
表达式。SubAddress
表达 一个代表 Hyperlink 对象的变量。
返回值
字符串
示例
本示例设置在幻灯片放映过程中,单击当前演示文稿第一张幻灯片第一个形状时,跳转到 Latest Figures.ppt 中名为"Last Quarter"的幻灯片。
With ActivePresentation.Slides(1).Shapes(1) _
.ActionSettings(ppMouseClick)
.Action = ppActionHyperlink
With .Hyperlink
.Address = "c:\sales\latest figures.ppt"
.SubAddress = "last quarter"
End With
End With
本示例设置在幻灯片放映过程中,单击当前演示文稿第一张幻灯片第一个形状时,跳转到 Latest.xls 中 A1:B10 单元格区域。
With ActivePresentation.Slides(1).Shapes(1) _
.ActionSettings(ppMouseClick)
.Action = ppActionHyperlink
With .Hyperlink
.Address = "c:\sales\latest.xls"
.SubAddress = "A1:B10"
End With
End With
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。