How to visit a Web site when you double-click a shape in Visio (291003)



The information in this article applies to:

  • Microsoft Office Visio Professional 2003
  • Microsoft Office Visio Standard 2003
  • Microsoft Visio 2002 Standard
  • Microsoft Visio 2002 Professional
  • Microsoft Visio 2000 Enterprise Edition
  • Microsoft Visio 2000 Professional Edition
  • Microsoft Visio 2000 Standard Edition
  • Microsoft Visio 2000 Technical Edition

This article was previously published under Q291003

SUMMARY

This article describes how to navigate to a hyperlink when you double-click a shape, by using a shape's EventDblClick event.

MORE INFORMATION

You can use the ShapeSheet function, GOTOPAGE, not only to navigate to different pages in a drawing, but also to navigate to a Uniform Resource Locator (URL). To have Visio open a URL when you double-click a shape, use the GOTOPAGE function in the EventDblClick handler for the shape's ShapeSheet cell.

To modify a shape's double-click event to open a URL, follow these steps:
  1. Select the shape. Then, on the Window menu, click Show ShapeSheet.
  2. In the ShapeSheet window, find the EventDblClick cell in the Events section.
  3. In the EventDblClick cell, type the formula and URL to which you want to navigate, for example:

    GOTOPAGE("http://www.microsoft.com")

When you double-click the shape, Visio opens the default Web browser and browses to the URL.

Modification Type:MinorLast Reviewed:6/7/2005
Keywords:kbhowto KB291003