Share via


Hyperlink.Address Property

PowerPoint Developer Reference

Returns or sets the Internet address (URL) to the target document. Read/write.

Syntax

expression.Address

expression   A variable that represents an Hyperlink object.

Return Value
String

Example

This example scans all shapes on the first slide for the URL to the Microsoft Web site.

Visual Basic for Applications
  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

See Also