Code for button in Visio

In Visio I like to use buttons to turn layers on and off. Here’s code that uses a single button for turning on and off the layer named ‘Switch’.