link Property

Microsoft FrontPage Visual Basic

link Property

Returns or sets a Variant that represents the color of hyperlinks contained in a document. Corresponds to the link attribute for the BODY element.

expression.link

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

Performs the same function as the linkColor property.

Example

The following example makes the hyperlinks in the active document red.

    Sub SetLinkColor()
    Dim objBody As FPHTMLBody
    
    Set objBody = ActiveDocument.body
    
    objBody.link = "red"
End Sub