Press F8 to begin and to move to each line. You can also size the VBE and the Word window on your screen so you can see them both at once, and step through the macro one line at a time, in order to see what it does. You can run the macro while you are still in the VBE by pressing F5. Make sure the cursor is in the macro you want to test. It is possible to test macros from the VBE directly.
VISUAL BASIC FOR MAC HOW TO
For more about the Normal template and how to find it, see here. Then afterwards you can dump the copy with the macro experimentation and swap back in the older Normal template. It would be a good idea to make a copy of your Normal template before you begin playing with macros. There is limited undo ability, and no backup here Word assumes that if you are in this deep you know what you are doing. Macros are designed to help you automate Word to make your life easier. However, this article may help you understand Word a little better, giving you more power over what you do with it. You can use simple macros perfectly happily without knowing any of the information that follows. To experiment with modules and macros, you will need to explore the VBE (Visual Basic Editor). However, you can create other modules within the Normal template, and you can save your macros in other templates if you prefer. By default, macros you create go into the NewMacros module in the Normal template. Within templates, macros are saved in Modules, which hold collections of macros. Macros are written in Visual Basic for Applications (VBA), one of a number of coding languages. The Visual Basic Editor (VBE) is the environment where one can write and edit macros. An Introduction to the Visual Basic Editor (VBE)Ĭontributed by John McGhie and Daiya Mitchell