Discussion Locked

Word 2000 button to activate a toolbar

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
In Word 2000, how can I set up a button which will toggle the activation/deactivation of a custom toolbar? The "Tables and Borders" button toggles the Tables and Borders toolbar. I would like a button like this that would toggle my own custom toolbar.

3 replies

by dklippert

Attach a macro like this to a button:

Sub MyBarFred()
If CommandBars("Fred").Visible = True Then
CommandBars("Fred").Visible = False
Else
CommandBars("Fred").Visible = True
End If
End Sub

This discussion is closed to new replies.