Microsoft KB Archive/80072

{|
 * width="100%"|

Assigning WordArt or Equation Editor to Toolbar Buttons

 * }

Q80072

-

The information in this article applies to:


 * Microsoft Equation Editor, version 1.0
 * Microsoft WordArt, version 1.0
 * Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b
 * Microsoft Windows versions 3.0, 3.1

-

SUMMARY
Microsoft Word for Windows version 2.0 does not provide built-in commands for Microsoft WordArt or Microsoft Equation Editor that you can assign to buttons on the toolbar. You can use the following macros to easily perform the individual functions.

MORE INFORMATION
To create the macro for WordArt, follow these steps:

 On the Tools menu, click Macro. In the Macro Name box, type a name for the macro (such as InsertWordArt), and click Edit.  Type the following lines in the macro editing window:      Sub MAIN InsertObject .Class = &quot;WordArt&quot; End Sub 

For the Equation Editor, follow steps 1-2 above, and type the following line between the Sub MAIN and the End Sub lines in the macro editing window:

  InsertObject .Class = &quot;Equation&quot; To assign the macro to a toolbar button, follow these steps:


 * 1) On the Tools menu, click Options. From the Category box, select Toolbar, and click Macros.
 * 2) In the Context box, select either Global or Template, depending on where you want to store the macro.
 * 3) In the Commands box, select InsertWordArt, then select [space] to create a new button.
 * 4) In the Button box, select the button you want to represent the macro. Click Change and then click Close.