SubAddress 属性

       

返回或设置对象在与指定超链接相关联的文档中的位置,例如 Word 文档中的书签、Microsoft Excel 工作表中的区域或 PowerPoint 演示文稿中的幻灯片。可读写。String 类型。

示例

本示例设置在幻灯片放映过程中,单击当前演示文稿第一张幻灯片第一个形状时,跳转到 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