Share via


PowerPoint) (Hyperlink.SubAddress 屬性

會傳回或設定與所指定超連結相關之文件 (例如 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

另請參閱

Hyperlink 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應