Skip to main content

Shape.Hyperlink property

Table of contents
  1. Syntax
  2. Example

Returns a Hyperlink object that represents the hyperlink for the shape.

Syntax

expression.Hyperlink

expression A variable that represents a Shape object.

Example

This example loads the document attached to the hyperlink on shape one.

Worksheets(1).Shapes(1).Hyperlink.Follow NewWindow:=True

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>