Visio: how do you create a macro that puts shapes on the page?

D

Darryl

I have several groups of UML shapes that I add to a page on a regular basis.
How do I create a macro to do this automatically? I don't want to copy and
paste as this creates a new "version" of the same shapes in the Model
Explorer which ends up complicating the linkages.
 
D

Darryl

Phillipe,

thanks for your response - it's in the right general area, but I was looking
for a quick way to record the macro rather than actually writing VBA code. I
was wondering if there were some keystrokes that would get the shape on the
page that would be recognised by the macro recorder, or something similar. I
am familiar with VBA, but not Visio VBA, and by the time I coded the by hand
I could have the task finished.

I have found another workaround which is porbably going to achieve the same
thing. I have set up the shapes that are frequently used, group them, and
then copy them into the User Shapes stencil. Later I can drag them out from
this stencil onto the page and have the group ready made. I have to do a
little fine tuning to get the linkages right to the shapes outside the group,
but it is definitely a lot faster than doing each shape and linkage in the
group one by one.

Thanks for your suggestion anyway, and I did learn something more from it.

regards,
Darryl
 
M

Michel LAPLANE \(MVP\)

Did you try to use the macro recorder , it cretaes vba code for you.

Enjoy with Visio
 

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