Dynamic shape relationships

M

mnbarrys

I am trying to do something in Visio that I am not sure is meant to be
done in Visio. Lets say I have a 4 page Visio document. On the first
page their are two shapes. We will call this page the A/B page. The
two shapes are called A and B. The next page we will call Page 1. This
page has just one shape. I would like to make it so that the A and B
shapes on the A/B page both hyperlink to the page 1. However, I would
also like for the clicking of the A or B shape to affect the shape on
Page 1. After Page 1 there will be two possible pages. Page 2A or
Page 2B. I would like the initial click on the A/B page to make it so
that when I click the shape on Page 1 it affects whether clicking that
shape takes me to the 2A or 2B page. I then want both the 2A and 2B
pages to have one shape which will hyperlink me to Page 3.

I know this is awefully wordy and I apologize but I really need a hand
with this as I have not found any help elsewhere.

Thanks in advance for any help.
 
M

Mark Nelson [MS]

Well... you can something pretty close to this behavior using the
Double-Click event on shapes instead of the hyperlink.

- On Page A/B add a User-defined cell to the Page's Shapesheet called
User.State.

- In the EventDblClick cell of shape A enter:
SETF(GetRef(ThePage!User.State),"2.1")+GOTOPAGE("Page-1")

- In the EventDblClick cell of shape B enter:
SETF(GetRef(ThePage!User.State),"2.2")+GOTOPAGE("Page-1")

- In the EventDblClick cell of the shape on Page-1 enter:
IF(Pages[Page-1]!ThePage!User.State="2.1",GOTOPAGE("Page-2A"),GOTOPAGE("Page-2B"))

- In the EventDblClick cell of the shapes on Page-2A and Page-2B enter:
GOTOPAGE("Page-3")


I suggest using numbers for the value in User.State so that you don't have
to complicate the logic with string comparison formulas.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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