How set a Shape

Started by Leonardo, July 20, 2017, 02:14:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Leonardo

Hello,
I have a "noob" question ahah
Do you know how "SET" a shape without using For each

This example show you the way which i take to set my shape :

Public Sub example()
Dim vsoShape as Visio.Shape
For each vsoShape in ActivePage.Shape
Next
end Sub


Thank You

Surrogate

you can declare shape via ID
ActivePage.Shapes.ItemFromID(ID)
ActivePage.Shapes(ID)

or ShapeName
ActivePage.Shapes.Item("ShapeName")
ActivePage.Shapes("ShapeName")

Leonardo

Hum ok... Can I write like this :


ActivePage.Shapes.Item("ShapeName[b]*[/b]")
ActivePage.Shapes("ShapeName[b]*[/b]")