Uniquely identify a shape

D

dani

Hi there,

is there a way to uniquely identify a shape on a multi-page document?

as I have seen, the ID property will not work because there can be
shapes with same IDs on different pages...

thanks for help

Daniel
 
A

Al Edlund

Daniel,
I put this in my shape added routine to force a guid to the shape

strShapeUniqueID = visShape.UniqueID(visGetOrMakeGUID)

for a page add I use this

strPageUniqueID = objPage.PageSheet.UniqueID(visGetOrMakeGUID)

These allow me to have unique keys for when I want to save/restore from a
database, and yet protect me from users that want to change names, etc.

Al
 

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