Go Premium for a chance to win a PS4. Enter to Win

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

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

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