Visio Guy

Visio Discussions => Visio Bugs (er...Issues) => Topic started by: Sno on March 27, 2017, 02:33:27 AM

Title: Hyperlink to Page Not Working - Linking to unrelated page
Post by: Sno on March 27, 2017, 02:33:27 AM
My issue is that I have created a hyperlink on a shape that is suppose to take me to another page in the file, however, when the link is selected (Control+click) it takes me to an incorrect page. When the mouse hovers over the shape it indicates the correct page. I have deleted the shape and replaced it but the same thing happens?
Title: Re: Hyperlink to Page Not Working - Linking to unrelated page
Post by: wapperdude on March 27, 2017, 04:42:56 AM
More efficient have an upload.  Often stated problem is a collateral issue.

Wapperdude
Title: Re: Hyperlink to Page Not Working - Linking to unrelated page
Post by: Sno on April 02, 2017, 12:09:03 AM
Thanks for answering, I have attached a stripped down copy of the file that I am having trouble with for analysis.

@wrapperdude
Title: Re: Hyperlink to Page Not Working - Linking to unrelated page
Post by: Yacine on April 02, 2017, 10:31:25 AM
I inspected the hyperlinks of the navigation shapes and found that the one not working had a different syntax from the ones working.
Trying to edit the formula manually didn't help.
So I did next look at the naming of the page. Found out that there was an empty space at the end of the name of page 8. Removing it fixed the problem. Crazy, isn't it?

Tried to find for you a solution without absolute addresses: eg using a DOCMD at shapesheet level with next and previous page - only to discover that the function exists, but only in VBA. Why the hell did the developers of Visio do this???
Title: Re: Hyperlink to Page Not Working - Linking to unrelated page
Post by: wapperdude on April 02, 2017, 11:37:42 PM
Never took a count, but m guess is less than 1/2 of docmds work in shapesheet.   ???

Wapperdude

Title: Re: Hyperlink to Page Not Working - Linking to unrelated page
Post by: metuemre on April 03, 2017, 11:29:32 AM
I had some free time to count and here are the results; There are 669 DoCmd commands and 113 of them work in ShapeSheet (16.89%)  8)
Title: Re: Hyperlink to Page Not Working - Linking to unrelated page
Post by: wapperdude on April 03, 2017, 02:13:58 PM
Dude!     :o
Title: Re: Hyperlink to Page Not Working - Linking to unrelated page
Post by: Yacine on April 03, 2017, 02:22:42 PM
This should inspire us to write some code isn't it?
Title: Re: Hyperlink to Page Not Working - Linking to unrelated page
Post by: wapperdude on April 03, 2017, 04:12:03 PM
...thinking ...
Title: Re: Hyperlink to Page Not Working - Linking to unrelated page
Post by: Yacine on April 03, 2017, 04:34:44 PM
thinking about a neat way to call a DOCMD in VBA from a CALLTHIS in VBA.
Having ideally an easy way to inject the code in the VSD/VSDX ... or at least work from a template.
In the shapesheet you'd use a generic CALLTHIS(DOCMDx(parameter))
In a VBA module, there would be
public sub DOCMDx(shp as shape, param as integer)
  DOCMD param
end sub

Useful?

Runmacro would do the same, without passing the shp as argument.
Title: Re: Hyperlink to Page Not Working - Linking to unrelated page
Post by: wapperdude on April 03, 2017, 05:15:43 PM
That sounds useful.  There are times I thought about using a particular docks in shapesheet only to find not available.  Didn't think about it as hard as you have.  Looks promising.  Looks to good to be true.  😱