Broken hyperlink finder

L

Leland

I have a 40+ page Visio drawing that will evolve to well over 200 over the
course of this year. I have many hyperlinked shapes to other pages in the
same Visio drawing. If I rename or remove a page it breaks my links but I
don't have any easy way of finding those links. Does anyone have a good way
(VBA or otherwise) of finding shapes which have broken page hyperlinks? I
also have some shapes which hyperlink to external web pages but I'm not
concerned with those.

Thanks,
Dave
 
D

David Parker

The Off-page connector shape on the Basic Flowchart stencil uses an add-on
called OPC, which has several arguments. Basically, it creates reciprical
hyperlinks, and the double-click action uses the PageGUID and ShapeGUID
which it stores in particular user-defined cells. As you have noticed, the
hyperlink cells contain invalid references to page names, but you could
repair them by writing code to loop thru' the pages collection to retieve
the new page name (and for shape names too).

Of course, these presupposes that you have used the OPC add-on (which can be
applied to your own masters).

If you haven't, then you may need to repair the hyperlinks in code by
looping thru the pages and shapes to find out which page a particular
shapename is on. The problem with this is that you may not have uniquely
named your shapes ....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top