H
Harry-Wishes
Hello
I have programmatically created a toggle feature that displays and hides a
custom toolbar in Word. I have successfully attached the macro to a button on
a second toolbar such that, when pressed, it cause the other toolbar to
alternate its display(visible/hidden). See code below. Works great.
Sub ToggleToolBar()
If Application.CommandBars("GRAS_Template").Visible = False Then
Application.CommandBars("GRAS_Template").Visible = True
Else
Application.CommandBars("GRAS_Template").Visible = False
End If
End Sub
The step I am currently researching is the possibility of changing the
display name of the button to reflect the visibility status of the toolbar.
Is there a programmatic way of doing this? Example: Display name toggles
from "ON" to "OFF" and visa versa.
Thanks
Harry-Wishes
I have programmatically created a toggle feature that displays and hides a
custom toolbar in Word. I have successfully attached the macro to a button on
a second toolbar such that, when pressed, it cause the other toolbar to
alternate its display(visible/hidden). See code below. Works great.
Sub ToggleToolBar()
If Application.CommandBars("GRAS_Template").Visible = False Then
Application.CommandBars("GRAS_Template").Visible = True
Else
Application.CommandBars("GRAS_Template").Visible = False
End If
End Sub
The step I am currently researching is the possibility of changing the
display name of the button to reflect the visibility status of the toolbar.
Is there a programmatic way of doing this? Example: Display name toggles
from "ON" to "OFF" and visa versa.
Thanks
Harry-Wishes