| | The Macro Recorder can be used to record simple macros. | |
| | Recording macros is very useful even if you are a very experienced programmer, although there are some limitations that you need to be aware of. | |
| | If you are relatively new to macros it is worth rehearsing your steps first before recording them. | |
| | This will help you to understand the code that is generated and to help make your code as efficient as possible. | |
| | When you record a macro Word is basically recording the keystrokes, menu commands exactly as they are pressed. | |
| | After you have recorded a few single steps you can run the macro to perform the required task again and again. | |
| | Once you start the Macro Recorder all your keystrokes will be recorded and converted into VBA code. | |
| | Before recording your macro check your macro security level. You will be not be able to record a macro if your security level is set to High. This should be changed to Medium. | |
| | There are three possible workbooks where you can store your macros: | |
| | Normal.dot - Storing your macros here will mean that they are available every time Word is open and are not reliant on any one particular document. | |
| | Document - This is the default location and is often the best place if you are relatively new to macros. A macro that has been saved into a specific document is only available when that particular document is open. The currently active document is also referred to as the current document or active document. | |
| | Once you press OK a small floating toolbar will appear. This is the Stop Recording toolbar and indicates that any keystrokes you make will be recorded. | |
| | The status bar also displays the message "Recording". | |
| | You can now perform the keystrokes that you would like to be automated. | |
| | A new code module is often inserted into the workbook automatically to contain the generated VBA code. | |
| | | The code that is generated is normally very specific and often dependent on local settings or options. | |
| | | It is not possible to record a macro and have the generated code placed within an existing macro. You will have to cut and paste the lines of code manually. | |
| | | The code generated by the macro recorder often contains a lot of unnecessary arguments and lines and should really be cleaned up afterwards. | |
| | | Be aware that the Macro Recorder cannot create any of the following: Loops, Variables, Error Handling or Conditional statements. | |
| | | The code generated by the macro recorder can often be quite inefficient and will run quite slowly compared to code that has been optimised. | |
| | | In Word 97 you cannot add a description to your macros in (Tools > Customise) | |
| | | You can also double click the "REC" in the status bar at the botom to quickly record a macro | |