返回或设置与指定超链接相关联的文档中的位置,例如 WPS 文档中的书签、ET 工作表中的区域或WPP 演示文稿中的幻灯片。可读/写
String 类型。
语法
表达式.SubAddress
表达式 一个代表 Hyperlink 对象的变量。
返回值
String
示例
本示例设置在幻灯片放映过程中,单击当前演示文稿第一张幻灯片第一个形状时,跳转到 Latest Figures.ppt 中名为“Last Quarter”的幻灯片。
示例代码 |
ActivePresentation.Slides.Item(1).Shapes.Item(1).ActionSettings.Item(ppMouseClick).Action = ppActionHyperlink
let h = ActivePresentation.Slides.Item(1).Shapes.Item(1).ActionSettings.Item(ppMouseClick).Hyperlink
h.Address = "c:\\sales\\latest figures.ppt"
h.SubAddress = "last quarter"
|
本示例设置在幻灯片放映过程中,单击当前演示文稿第一张幻灯片第一个形状时,跳转到 Latest.xls 中 A1:B10 单元格区域。
示例代码 |
ActivePresentation.Slides.Item(1).Shapes.Item(1).ActionSettings.Item(ppMouseClick).Action = ppActionHyperlink
let h = ActivePresentation.Slides.Item(1).Shapes.Item(1).ActionSettings.Item(ppMouseClick).Hyperlink
h.Address = "c:\\sales\\latest.xls"
h.SubAddress = "A1:B10"
|