[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 402
  • 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

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

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