How to select shapes with VBA

D

Dirk

Hi,

I currently have a VBA module that will read a text file that contains
a list of process names and places a shape on a page with the text
field containing the name of the process. Once I have created all the
processes I would like to read another file that contains a list of
parent child relationships and programmatically connect the two
processes.

Can anyone give any suggestions on how to connect two shapes.

Thanks,
Dirk
 
J

JuneTheSecond

Character.Text property might be one idea, for example,,,
Dim shp As Visio.Shape
For Each shp In ActivePage.Shapes
If shp.Characters.Text Like "name*" Then
ActiveWindow.Select shp, visSelect
End If
Next
 

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