Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Office > Visio

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 12-13-2016, 11:28 AM
Phil H Phil H is offline Windows XP Office 2010 64bit
Advanced Beginner
 
Join Date: Jun 2010
Posts: 53
Phil H is on a distinguished road
Default Toggling Layers

Visio 2010
File name: Octagonal Planter.vsd
Tab name: 13-Inch (a drawing of a cement mold). Can change name to simplify code.


Layer name: Construction. Command Button 1.
Layer name: Cement Fill. Command Button 2.

Cement Fill layer is over (in front of) Construction layer.

What would the code be to use a single button to toggle each layer on or off independently?

Would I put the code behind each button, or in a module? There are eight tabs with different drawings/names.
Reply With Quote
  #2  
Old 12-13-2016, 01:48 PM
JimP JimP is offline Windows 10 Office 2013
Experienced User
 
Join Date: Jun 2010
Location: Virginia Beach, VA
Posts: 681
JimP is on a distinguished road
Default

I am not familiar with using code in Visio but, your question drew my interest. I googled "using code to toggle layers in visio" and came up with multiple hits that may help you. Try it out...

HTHs
Reply With Quote
  #3  
Old 12-14-2016, 04:48 AM
Phil H Phil H is offline Windows XP Office 2010 64bit
Advanced Beginner
 
Join Date: Jun 2010
Posts: 53
Phil H is on a distinguished road
Default

I did - and every one had nuances that would not work for me. I'm looking for a simple solution, nothing complex like found online. Furhter, I'm not familiar with coding for Visio. I'm mostly an Excel user. Appreciate your advice, but could someone familiar with Visio coding lend a hand.....
Reply With Quote
  #4  
Old 12-14-2016, 10:27 AM
JimP JimP is offline Windows 10 Office 2013
Experienced User
 
Join Date: Jun 2010
Location: Virginia Beach, VA
Posts: 681
JimP is on a distinguished road
Default

Well, if you would look deeper into this forum you will find that it is not too active with Visio users...if fact, I am probably the most active in responding to Visio questions. However, since retiring I have become less active since the versions have upgraded and my use with Visio has downgraded. With that in mind, I would refer you to another forum where you may find additional assistance. While I am not sure how active it is or how long you may wait to get a response, try http://visguy.com/vgforum/

HTHs...
Reply With Quote
  #5  
Old 12-14-2016, 10:46 AM
Phil H Phil H is offline Windows XP Office 2010 64bit
Advanced Beginner
 
Join Date: Jun 2010
Posts: 53
Phil H is on a distinguished road
Default

Thanks, Jim. Will give it a try. Appreciate your help.
Reply With Quote
Reply

Tags
toggle layer
Please reply to this thread with any new information or opinions.

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Toggling boxes, words appear? arlanarlan Word 0 12-16-2015 12:00 PM
Editing Freeform Points/Layers In Draw Mode LEG Word 4 06-19-2013 08:46 PM
How do I edit layers (builds)? smw PowerPoint 4 06-15-2012 12:33 AM
Layers for multiple languages? Annika PowerPoint 0 08-18-2011 02:11 AM
Toggling Checkbox Color Phil H Word 0 06-18-2010 10:51 AM


All times are GMT -7. The time now is 06:43 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft