Visio VBA - Switching Layers with a macro
Posted on 2014-01-02
I have a macro that switches from a :
technical layer (with IP addresses and port numbers).
management layer (no IP addresses, just icons and host names
CTRL + T for technical
CTRL + M for managerial
Works fine on one sheet.
On page 2, I just created a technical layer, assigned objects and for some reason, the OPPOSITE is taking place. CTRL + T is showing me the managerial view. CTRL + M is showing me the tecnical view.
Same layer names, different page. Macro works the opposite way! "T" is now showing managerial view "M" is now showing technical view.
How can I fix this?