• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 413
  • Last Modified:

Visio 2013 - Macro can't find variable names!

I have three macro buttons which switch layer views on my one page Visio diagram.
However, I keep getting the following message:
errI have also attached the actual Visio file.  Please tell me what's wrong with my macro.
I have constants declared but they do not seem to be picked up by the command button event procedures.
macro-problem.vsdm
0
brothertruffle880
Asked:
brothertruffle880
1 Solution
 
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperCommented:
Simple answer, actually -- your three constants are defined in the wrong module. They are used in the ThisDocument module so they need to be defined there.
0
 
brothertruffle880Author Commented:
Argh!  Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now