ExtraInfoRequired Property

Microsoft Word Visual Basic

ExtraInfoRequired Property

       

True if extra information is required to resolve the specified hyperlink. Read-only Boolean.

Note   You can specify extra information by using the ExtraInfo argument with the Follow or FollowHyperlink method. For example, you can use ExtraInfo to specify the coordinates of an image map, the contents of a form, or a FAT file name.

Example

This example inserts a hyperlink to www.msn.com and then follows the hyperlink if extra information isn't required.

Dim hypTemp As Hyperlink

With Selection
    .Collapse Direction:=wdCollapseEnd
    .InsertAfter "MSN "
    .Previous
End With
Set hypTemp = ActiveDocument.Hyperlinks.Add( _
    Address:="http://www.msn.com", _
    Anchor:=Selection.Range)
If hypTemp.ExtraInfoRequired = False Then
    hypTemp.Follow
End If