For example: 'ToggleWebToolbar.' If you do use capitalization as suggested, Word will expand the name into a tooltip (yellow balloon) when you place a button for the macro on the toolbar. Naming Macros: It is conventional to express VBA names with each word capitalized and the spaces taken out. In the box for Macro Name, type a name for your macro-the name must not contain spaces. You will get a dialog box that lists all existing macros, if you have any. It assumes no prior knowledge, but does presume that you have the text of the macro ready to copy. This article explains how to install a macro step by step. Macros in Word are written in a coding language called VBA, or Visual Basic for Applications. If someone on a newsgroup gave you a macro or some VBA to fix a problem, this is what you do with that text.
Word 2008 does not support VBA.Ĭontributed by John McGhie and Daiya Mitchell
Applies to all versions except Word 2008.