C
Chrisso
Hi All
I have a Forms command control that my users use to toggle the
visiblity of my legend/key. At the moment my command button's text is
"Toggle Legend" which is exactly what the macro behind it does.
Unfortunately some of my users do not know what toggle means and are
confused. I therefore would like to be able to change the text of my
command button each time it is clicked - from "Show Legend" to "Hide
Legend".
However I cannot see how do do this through the object model.
I can get a handle on the shape:
Dim aShape As Shape
Set aShape = ActiveSheet.Shapes(Application.Caller)
But cannot see how to access the text that lives on the button.
Are form command buttons considering shapes? or some other object?
Any ideas?
Thanks in advance,
Chrisso
I have a Forms command control that my users use to toggle the
visiblity of my legend/key. At the moment my command button's text is
"Toggle Legend" which is exactly what the macro behind it does.
Unfortunately some of my users do not know what toggle means and are
confused. I therefore would like to be able to change the text of my
command button each time it is clicked - from "Show Legend" to "Hide
Legend".
However I cannot see how do do this through the object model.
I can get a handle on the shape:
Dim aShape As Shape
Set aShape = ActiveSheet.Shapes(Application.Caller)
But cannot see how to access the text that lives on the button.
Are form command buttons considering shapes? or some other object?
Any ideas?
Thanks in advance,
Chrisso