A macro is a small program that automatically performs a series of actions and commands within software, such as a word processor or spreadsheet. Most programs have macros accessible from menus or keyboard shortcuts. Creating your own macros can be useful for automating and speeding up your work. Each software package requires its own method for creating macros, but most allow you to create a macro by directly recording your keyboard inputs.
Steps
Step 1. Make sure you know each command you want to execute and which menus to use, so you don't have to hesitate while registering
Macro recording will record any mouse and keyboard button presses, including errors. These errors will then be executed every time you run the macro.
Step 2. Find the macro menu and select the option to record the macro
You will see an icon indicating that registration is in progress. For example, in Microsoft Word you will see an icon appear near the mouse pointer, which depicts a cassette player.
Step 3. Name the macro
Give the macro a name that is easy to remember, and select one or more keys to associate with the macro.
Step 4. Perform the actions you want to record in the macro
For example, set margins, fonts and tabs; create headers and footers; enumerate the pages and set the document view.
Step 5. When done, stop recording
Step 6. Test the macro
Run the keyboard shortcut assigned to the macro or select the macro from the menu. Make sure the macro works as it should.
Step 7. If the macro doesn't work, edit it if you can or re-record it
If you don't know how to write programs, you will most likely not be able to edit the macro. Rather, it re-records the macro making changes where necessary, replacing the existing macro with a new one under the same name.
Step 8. Save the macro
Macros are saved in a specific directory with their own extension. By changing either of these two parameters, the software may not be able to run the macro.