Selected shape & Properties

T

Tamir Khason

How can know wich shape is selected and add there properties (according
stencil) ?

TNX
 
D

David Parker

Your answer may be:
ActiveWindow.Selection.PrimaryItem
&
ActiveWindow.Selection.PrimaryItem.Master.Shapes(1)
.... but I am only guessing because I didn't understand the question!
 
C

claires

Tamir said:
*How can know wich shape is selected and add there propertie
(according
stencil) ?

TNX *

Visio.ActiveWindow.Selection(1) will give the (first) shape that i
selected (there could be more than one item in the selections).

To get custom properties defined use:

shape.Cells("Prop.SomePropName").ResultStr(0) if it is a strin
property


-
claire
 

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