J
John... Visio MVP
Hi Sachin.
The carriage returns are the key as I have discovered using this code
as well. Also, the msg box issue was fixed after I fooled around with
it a bit. I ended up just hard coding a loop through the shapes I was
working with.
I am experiencing a related problem, however. I want to find explicit
connections as in ShapeA connects with ShapeB etc... using the actual
shape text. The ToSheet command is returning a shape text, however the
FromSheet command is returning the text of a connector, not a shape.
Does anyone know of another command that will return the shape text on
the other side of the connector?
Thanks,
Damascus
When normal humans like us look at a Visio drawing we see Shape A connected
to Shape B. When Visio looks at the same drawing it sees Shape A connected
to a connector shape and the connector shape connected to Shape B.
So you will have to check the From/To connections of the connector to find
Shape B. You may also want to verify that the shape ShapeA is connected to
is a 1d shape (typical for most connections).
John... Visio MVP