- Choose Customize on the Tools menu.
- On the Commands tab, where it says “Save In”, select the template in which you want to save the changes you are about to make; or accept the default, which is usually to save them in your Normal.dot template (which will make your customisation global). If you are new to this, you will probably want to accept the default:
For the sake of older hands: the “Save in” box defaults to “Normal.dot”, unless the current document is another template or add-in, in which case it defaults to that template or addin. If the current document is attached to a template other than Normal.dot, then you will be able to select that template by pulling down the “Save in” List, thus allowing you to make your customisation specific to documents based on that template, if that's what you want.
If you want to make the changes in an add-in, you need to open the add-in as the current document before you start.
If you want to create a new Toolbar, click on the “Toolbars” tab, click New, give the new toolbar a name, and choose which template you want to store the toolbar in:
Figure 1
Figure 2
- Then right-click on your new menu, and rename it.
- Put an ampersand (&) just before the character which you want to be the shortcut key (the underlined character) – for instance if your menu is called “/font>My macros”, and you want the user to be able to invoke it using Alt+M, you should name it “My ¯os” or “&My macros”.
Figure 4
&
- Once you've done that, select the Commands tab
- In the Categories list, choose All Commands to assign a Word command, or choose Macros to assign a macro. Then in the list on the right, choose a command or macro and drag it onto the menu or toolbar you want it to be part of.
- If you are customising a menu (including a shortcut/right-click menu), you will need to hold the mouse still until the menu drops down. Then position it, and only release the mouse when you have the command where you want it:
Figure 5
Figure 6
How to fix the Word 2000+ Cell Alignment buttons
- Right-click on your new menu or toolbar button, and rename it (see Figure 3).
Then you can select “Edit button Image”, or “Change button image”; or “Paste button image”. In order to paste a button image, obviously you have to copy one first: You can copy an image from the document, or from another button; or from a graphic in a graphics package. For much more detail on this, see the article: Assigning custom button images to your toolbar and menu buttons.
If you've dragged the macro onto a menu, put an ampersand (&) just before the character which you want to be the shortcut key (the underlined character) – for instance if your button is called “Heading Numbering”, and you want the user to be able to invoke it by pressing N, you should name it “Heading &Numbering”. And again, see also: Assigning custom button images to your toolbar and menu buttons.
- Click Close.
If it is a macro that you're assigning, and if you capitalise your macro name so that the first letter of each “word” is capitalised and the rest is lower case, then the Tooltip will automatically have spaces between the “words”; so that a macro called “HeadingNumbering” would automatically have a Tooltip of “Heading Numbering”.
Whether it's a macro or a command that you're assigning, if you want to change the Tooltip text which appears when a user hovers over the button, you have to run a line of code such as the following – but this is a one-off – you only need to run the code once (you could run it from the Immediate Window – press Ctrl+G, or select View + Immediate Window):
CommandBars("MyCommandBarName").Controls("NameOfMyNewButton"). _
TooltipText = "My tooltip text"
Or if your button is on a menu you'd use something like:
TooltipText = "My tooltip text"
CommandBars("MenuBarName").Controls("NameOfMenu"). _
.Controls("NameOfMyNewButton").TooltipText = "My tooltip text"
.Controls("NameOfMyNewButton").TooltipText = "My tooltip text"
- Then select b> File + Save All again.