Author Topic: Hyperlink to Page Not Working - Linking to unrelated page  (Read 2126 times)

0 Members and 1 Guest are viewing this topic.

Sno

  • Newbie
  • *
  • Posts: 3
Hyperlink to Page Not Working - Linking to unrelated page
« on: March 26, 2017, 09:33:27 PM »
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?

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3282
  • Ideas Visio-lized into solutions
Re: Hyperlink to Page Not Working - Linking to unrelated page
« Reply #1 on: March 26, 2017, 11:42:56 PM »
More efficient have an upload.  Often stated problem is a collateral issue.

Wapperdude
Visio 2007 Std

Sno

  • Newbie
  • *
  • Posts: 3
Re: Hyperlink to Page Not Working - Linking to unrelated page
« Reply #2 on: April 01, 2017, 07:09:03 PM »
Thanks for answering, I have attached a stripped down copy of the file that I am having trouble with for analysis.

@wrapperdude

Yacine

  • Hero Member
  • *****
  • Posts: 2484
Re: Hyperlink to Page Not Working - Linking to unrelated page
« Reply #3 on: April 02, 2017, 05: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???
« Last Edit: April 03, 2017, 11:37:20 AM by Yacine »
Yacine

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3282
  • Ideas Visio-lized into solutions
Re: Hyperlink to Page Not Working - Linking to unrelated page
« Reply #4 on: April 02, 2017, 06:37:42 PM »
Never took a count, but m guess is less than 1/2 of docmds work in shapesheet.   ???

Wapperdude

 
Visio 2007 Std

metuemre

  • Full Member
  • ***
  • Posts: 140
Re: Hyperlink to Page Not Working - Linking to unrelated page
« Reply #5 on: April 03, 2017, 06: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)

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3282
  • Ideas Visio-lized into solutions
Re: Hyperlink to Page Not Working - Linking to unrelated page
« Reply #6 on: April 03, 2017, 09:13:58 AM »
Dude!     :o
Visio 2007 Std

Yacine

  • Hero Member
  • *****
  • Posts: 2484
Re: Hyperlink to Page Not Working - Linking to unrelated page
« Reply #7 on: April 03, 2017, 09:22:42 AM »
This should inspire us to write some code isn't it?
« Last Edit: April 03, 2017, 09:30:20 AM by Yacine »
Yacine

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3282
  • Ideas Visio-lized into solutions
Re: Hyperlink to Page Not Working - Linking to unrelated page
« Reply #8 on: April 03, 2017, 11:12:03 AM »
...thinking ...
Visio 2007 Std

Yacine

  • Hero Member
  • *****
  • Posts: 2484
Re: Hyperlink to Page Not Working - Linking to unrelated page
« Reply #9 on: April 03, 2017, 11:34:44 AM »
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.
Yacine

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3282
  • Ideas Visio-lized into solutions
Re: Hyperlink to Page Not Working - Linking to unrelated page
« Reply #10 on: April 03, 2017, 12: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.  😱
Visio 2007 Std