Address 属性

       

返回或设置目标文档的 Internet 地址(URL)。可读写。String 类型。

示例

本示例扫描第一张幻灯片中的所有形状,显示它们的 URL 是否为 Microsoft Web 站点。

Set myDocument = ActivePresentation.Slides(1)
For Each s In myDocument.Hyperlinks
    If s.Address = "http://www.microsoft.com/" Then
        MsgBox "You have a link to the Microsoft Home Page"
    End If
Next