OK here my problem: On my Excel sheet I have several buttons, lists and labels. What these buttons should do is make a label visible and every button makes a different label visible. What I could do is this:
[vba]label1.visible = true
label2.visible = false
label3.visible = false
etc. [/vba]
and for the next button:
[vba]label1.visible = false
label2.visible = true
label3.visible = false
etc. [/vba]
but because I have a lot of buttons and labels, that would be a lot of text and I really don't like to type anything more than needed. So what I am looking for is a peace of code that turns ALL the labels off in one click. This way I would get something like this:
[vba]label(all).visible = false
label1.visible = true
label(all).visible = false
label2.visible = true[/vba]
This would be only 2 lines for each button instead of 16 lines.
Hope any of you have an idea, thanx.
[edit] edited the layout a bit, so other people can make sense of it to [/edit]