Custom properties question

P

PPL

Hi Group,
Please: Is there a way of creating and displaying a custom property in one
shape that will assume the value of a custom property in another shape?

Any help would be appreciated.

TIA

Phil
 
C

Chris Roth [MVP]

Hi Phil,

You have to get into the ShapeSheet a bit to do this. It's easy enough to
see the Custom Properties section once you go to Window > Show ShapeSheet.
You'll placing your formula in the Value column of a Custom Property row.

You also need to know the "Sheet ID" of the other shape. Select a shape and
choose Format > Special. You'll see ID: at the top of the dialog. That is
the shapes id number, of course.

So now, if you want a shape to refer to a property in another shape, you'd
enter Sheet.ID!Prop.PropertyName.

So if the other shape is ID = 4, and you want to link to the property
"Cost", it would look like:

Value = Sheet.4!Prop.Cost

--
Hope this helps,

Chris Roth
Visio MVP

www.wanderkind.com/visio
 
P

PPL

Yes, that does help me a lot. Thank you very much Chris. That's great.
I now feel that I have handle on what to do.

I've used the Shape Sheet and Custom Properties etc before, and have also
written a couple of VBA scripts. So I guess I'm slightly beyond the beginner
level when it comes to this stuff

I'm trying to write script that will look at the values placed in the
ShapeNumberText +ShapeNumber of say Shape1. I then what to display a custom
property in a second shape (Shape2 ) that says "blah text blah, as defined
in Shape1"
I'm going to use your solution to ensure that if the ShapeNumber changes in
Shape1 then it will (hopefully) automtaically be updated in Shape2. a bit
like the cross referencing in MS Word I guess. If you insert a figure all
refrences to figure numbers beyond the inserted figure are updated i.e
incremented by 1

I'll get started with it on Tuesday - I'm looking forward to it. Thanks
again Chris

Sorry for the ramble ...



Phil
 
M

Mark Nelson [MS]

Also take a look at the Custom Callout shapes in Visio 2003 to see if they
do what you want. Go to File > Shapes > Visio Extras > Callouts and look
for these shapes at the bottom of the stencil.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

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

PPL

OK. Thanks very much Mark.

Philip

Mark Nelson said:
Also take a look at the Custom Callout shapes in Visio 2003 to see if they
do what you want. Go to File > Shapes > Visio Extras > Callouts and look
for these shapes at the bottom of the stencil.

--
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