itemfromid

A

aaron b

Im looking at the following vb code for use in a visio macro:

Set vsoCharacters2 =
Application.ActiveWindow.Page.Shapes.ItemFromID(24).Characters

how do i know what object on the visio page is item 24? can i change the id
of objects in visio?

thanks for any help
 
W

WapperDude

Visio assigns the ID number, usually, but not necessarily, in the order that
the shapes are dropped onto the sheet; but that's not the only process by
which an ID is generated, e.g., grouping objects requires an ID for the group.

A few ways to see which object corresponds to an ID:
1.) menu bar > View > Drawing Explorer. Click Foreground Pages > click the
page of interest > Shapes. A list of shapes will show. Usually, the ID
number will be appended to the shape name, but not always.
2.) menu bar > Format > Special. This will show the ID number, but, you
have to go around selecting shapes.
3.) short macro that selects the shape ID in question.

HTH
Wapperdude
 

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