Link to home
Start Free TrialLog in
Avatar of m_travis
m_travisFlag for United States of America

asked on

Toggle Visio Layers On and Off

I have 4 buttons(Commandbutton1. Commandbutton2, etc...) and 4 layers(Layer1, Layer2, etc..). I would like to use the buttons to toggle the visibility on and off pending on current visibility state.

Psuedo code:
sub Commandbutton1_Click:
----if layer1 is visible then:
--------layer1.visible = 0
----else
--------layer1.visible = 1
----end if
end sub
SOLUTION
Avatar of Scott Helmers
Scott Helmers
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of m_travis

ASKER

what is the file type?
Very strange... it is a Visio diagram (.vsd) but it appears that the EE upload truncated the name -- including the file extension! Just rename the file and add .vsd to the  end and you should be all set.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be closed as follows:

Accepted answer: 0 points for m_travis's comment #a40748526
Assisted answer: 300 points for scott's comment #a40747166

for the following reason:

My solution solved my problem. The other solution just contributed to the solution.
I'm glad my code provided some assistance, and thanks for posting your final code for the benefit of others.

Now I have a question: did you intend to close this question or accept your answer and mine? There is a difference at EE -- closing the question makes it go away, but accepting one or more answers leaves it here for others to learn from. If you intended the latter, use the "accept answers" links instead.

Thanks...
I wanted to provide you credit for helping and accept your answer with mine to make the questioned answered. All i did was hit "Accept Multiple Solutions", select the answers, and submit. Is that the wrong process to follow?
No, that sounds correct, but for some reason the email I received said that you'd made a request to cancel the question.

Go ahead and try it again and I'll let it go either way. Thanks.
My solution solved my problem. The other solution just contributed to the solution.