Connect two shapes together

J

jsaund2000

Hi,

I would like to know if it is possible to create a VBA macro for visio
which allows a user to select two shapes and click a button which
executes a macro that connects the two shapes together. Is it possible
to pass information about the selected shapes to the macro? How would
I do this?

Thanks
 
D

David Parker

Such a button exists already on the Action toolbar, called Connect Shapes.
Alternatively, record the action in a Macro, then edit.
The Visio.ActiveWindow.Selection is a collection of the selected shapes
 
J

jsaund2000

Thanks for the response.

Is there a way to obtain information about the shapes selected
(passing shape info to the macro) in a generic way? For example, if I
select a shape and have a macro which is to iterate through all of the
shapes/objects connected to it and delete them.
 

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