Importing Hyperlinks into Visio Shapes

Visio shapes can have multiple hyperlinks, but it can be a chore to add them with the Insert / Hyperlinks … command.  Fortunately, Visio 2007 Professional has the Data / Link Data to Shapes … command.

If you were to have a data source, such as an Excel spreadsheet, that contains hyperlinks (see the example below)…

ExcelHyperlinks

… then you can import these hyperlinks onto shapes, and they will be added, not only as Shape Data, but also as hyperlinks! In the example below, I have enhanced the Data Graphics to display the Shape Data on each shape.

HyperlinksInVisio 

When you save the Visio document to a web page as VML, then the multiple hyperlinks are available on each shape!

WebPageHyperlinks

Unfortunately, the PDF and XPS exports don’t preserver the multiple hyperlinks – just the first one.

Posted in Visio. 10 Comments »

10 Responses to “Importing Hyperlinks into Visio Shapes”

  1. k8simpson Says:

    This is hugely helpful – thank you!
    Does the above work if the link is to an Excel spreadsheet? It seems my links (whether in Shape Data or as links on the Shape themselves) don’t display as links coz they’re not ‘recognised’ as links…?
    I guess I need to maybe output the excel to RDF or something so that they have an actual linkable ‘home’?
    Anyway, love the blog!

  2. Spamtr Says:

    Hey,
    i´ve got a problem with Visio HTML Export. I want to open a extern hyperlink in the same frame as the diagram means frmDrawing. I´ve tried a lot but it won´t work with silverlight. I´ve tried to open my changed HTML without Silverlight and then i´ve got the extern hyperlink in the frmDrawing frame.

    Please help, i need it so much.

    • davidjpp Says:

      It is a known problem because the JavaScript function (GetHLAction) generated by the SaveAsWeb feature will only use the first default hyperlink that it finds on a shape.
      However, you do get multiple hyperlinks if you switch to using the VML output.
      The Silverlight code produced is version 2 compliant, I believe, so there is plenty of room for improvement.

  3. TRomanski Says:

    Hey,

    i cannot See those pultiple Hyperlinks in my WebPage.
    What am I doing wrong?

    • davidjpp Says:

      Are you using the Silverlight option in Visio 2010?
      If so, you have a problem because the JavaScript function (GetHLAction) generated by the SaveAsWeb feature will only use the first default hyperlink that it finds on a shape.
      However, you do get multiple hyperlinks if you switch to using the VML output.

  4. Slimani Hakim Says:

    hi, Is it possible to load a link to another page of the visio (subaddress) instead of a web hyperlink?

    Thanks a lot,

  5. Creating Shape to Page Hyperlinks Automatically using Link Data to Shapes « bVisual Says:

    […] demonstrated how to import hyperlinks into Visio shapes in a previous post – see https://blog.bvisual.net/2007/11/15/importing-hyperlinks-into-visio-shapes/, however, one of my readers wanted to know if the same mechanism can be used to create an hyperlink […]

  6. Meimei Says:

    Is it possible to give the link a description from the import instead of saying Link1, Link2 etc.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

davecra.wordpress.com/

Microsoft Office Development, and more...

PowerShell.Amsterdam

Automate, Accelerate, Accurate

johnvisiomvp

Life with Visio and other Microsoft Toys!

Title (Required)

Windows Server Essentials Tips & Tricks

Nilsandrey's Weblog

Just another WordPress.com weblog

Things that Should be Easy

Every so often (too often in the IT industry) I encounter things that should have been very easy to do but turned out to be far too complicated. My favorite topics include SharePoint, .Net development, and software architecture, especially distributed systems.

Visio Guy

Shapes, Stencils, Drawings Templates, Tutorials, Tips & Developer Info for Microsoft Visio

Hannes's Virtual Earth

Tips & Tricks around Mapping and Cloud Computing

Pluralsight blog

be smart, be clear, be visual ...

%d bloggers like this: