how can i get a shape' uniqueness ID?

Started by xiamen168, August 12, 2015, 06:26:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xiamen168

how can i get a shape' uniqueness ID?
nameU is not uniqueness  ID when it in different pages.
thanks!

Surrogate



xiamen168

shape.UniqueID(1) is good,
but return value is string ,
how to change to object ?

Nikolay

Hmm. What do you mean "change to object"? Get shape back by that unique string id? It's in the docs (see the link above).

xiamen168

Dim vsoShape As Visio.Shape
Set vsoShape = Visio.ActivePage.Shapes.Item("{2287DC42-B167-11CE-88E9-0020AFDDD917}")

but activepage only is not i wanted,
i want like this
Set vsoShape = thisdocument  all shapes Item("{2287DC42-B167-11CE-88E9-0020AFDDD917}")
is it possible?

AndyW

No that's not possible, you will have to check all your documents pages.
Live life with an open mind