Link to home
Start Free TrialLog in
Avatar of hal lavender
hal lavender

asked on

using a macro to print each layer in a visio drawing seperately

Hi

I have a Visio drawing with 40+ layers. I want to be able to print each of the layers on the active page independently [ and automatically]. Can anyone suggest how I can do this?

Thanks in advance
Avatar of Scott Helmers
Scott Helmers
Flag of United States of America image

This is relatively easy to do with a bit of code IF every shape is on exactly one layer. It gets more complicated if shapes are on multiple layers. That's because all of the layers on which a shape resides must be set the same way for the shape to appear/disappear or print. As an example, in the diagram below, the A shapes are on a layer called A, the B shapes on layer B, etc. However, all of the 2-D shapes are also on the Flowchart layer.User generated imageEven though layer A is set to be invisible, you still see the A shapes because of the Flowchart layer setting.

Is each of your shapes on exactly one layer?
Avatar of hal lavender
hal lavender

ASKER

I one shape can never on many kayets and each layer has between 50 and 100 shapes on it

What I need to do is the following
For each layer
Set the print flag for that layer
Execute a print command
Under the print flag for that layer
End loop
ASKER CERTIFIED SOLUTION
Avatar of Scott Helmers
Scott Helmers
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
THANK YOU! This was perfect!
Glad that I could help.