V
VKY
Hey All,
I just wanted to have a shape hyperlinked to another, which is easy
enough by typing into subaddress "Page-2/Sheet.1". The problem is that
when the page name is changed (Page-1 changed to Test), then the link
will be broken, and no longer works.
I therefore has to create a user cell on the PageSheet, "User.PageName"
where the formula for this cell is PageName(). Then I have to type into
the subaddress cell ThePage!User.PageName & "/Sheet.1", and even though
the page name will change, Visio will automatically update so my
subaddress link will always work.
a) Is there a better way?
All problems comes when I tried to implement the above programmatically.
When I tried to set
Link.SubAddress = "ThePage!User.PageName & ""/Sheet.1"""
in my program, the formula in the subaddress cell becomes:
"ThePage!User.PageName & ""/Sheet.1"""
and not
ThePage!User.PageName & "/Sheet.1"
which creates a non-working link. Even when I tried to remove the first
and the last quote, it is not possible as Link.SubAddress returns
ThePage!User.PageName & "/Sheet.1"
PLEASE HELP, is there a way to set a link to another shape and have the
link still working even though the page name has changed?
A MILLION THANKS IN ADVANCE.
I just wanted to have a shape hyperlinked to another, which is easy
enough by typing into subaddress "Page-2/Sheet.1". The problem is that
when the page name is changed (Page-1 changed to Test), then the link
will be broken, and no longer works.
I therefore has to create a user cell on the PageSheet, "User.PageName"
where the formula for this cell is PageName(). Then I have to type into
the subaddress cell ThePage!User.PageName & "/Sheet.1", and even though
the page name will change, Visio will automatically update so my
subaddress link will always work.
a) Is there a better way?
All problems comes when I tried to implement the above programmatically.
When I tried to set
Link.SubAddress = "ThePage!User.PageName & ""/Sheet.1"""
in my program, the formula in the subaddress cell becomes:
"ThePage!User.PageName & ""/Sheet.1"""
and not
ThePage!User.PageName & "/Sheet.1"
which creates a non-working link. Even when I tried to remove the first
and the last quote, it is not possible as Link.SubAddress returns
ThePage!User.PageName & "/Sheet.1"
PLEASE HELP, is there a way to set a link to another shape and have the
link still working even though the page name has changed?
A MILLION THANKS IN ADVANCE.