Create a new document ABC
add the following code to it (alt-f11 to open the VBA editor…)
Sub grammar()
ActiveDocument.CheckGrammar
End Sub
Go to the document again,
right-click on the toolbar->customize->toolbar->new
Give the name to the toolbar and make it available to ABC only, not normal.dot
Place this new toolbar on the toolbar group.
Now you need to place a macro button on it.
Still within the customize panel.
select commands->macros
select and drag the macro (grammar) into the new toolbar.
Once there right-click on the new macro name within the toolbar and change it's name to something more user-friendly.
(you can also change the image of the macro if you wish).
Now save this document as a ".dot", and place it within the STARTUP folder of word. (tools->options->file locations->startup)
Now go to tools->templates&add-ins and add the new template to the list.
Close word.
Next time you start you will have a button available on the toolbar with the new macro.
This code is really just an example. You can create almost anything you wish with this method.
Regards
Frederico Fonseca
SysSoft Integrated Ltd