Follow Method [Visio 2003 SDK Documentation]

Causes Microsoft Office Visio to navigate to a hyperlink.

object**.Follow**

object     Required. An expression that returns a Hyperlink object.

Version added

5.0

Example

The following example draws a rectangle shape, adds a Hyperlink object to the shape, sets its Address and NewWindow properties, and then uses the Follow method to navigate the hyperlink.

Before running this code, replace address with a valid Internet or intranet address.

Public Sub Follow_Example() 

    Dim vsoHyperlink As Visio.Hyperlink 

    Set vsoHyperlink = ActivePage.DrawRectangle(0,0,5,5).AddHyperlink 

    vsoHyperlink.Address = "http://address/" 
    vsoHyperlink.NewWindow = False 
    vsoHyperlink.Follow 

End Sub  

Applies to | Hyperlink object

See Also | AddHyperlink method