Hyperlink.Follow method (Visio)
Causes Microsoft Visio to navigate to a hyperlink.
Syntax
expression.Follow
expression A variable that represents a Hyperlink object.
Return value
Nothing
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 = "https://address /"
vsoHyperlink.NewWindow = False
vsoHyperlink.Follow
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.