How to run a macro
A typical method to run a macro is as follows:
1) Use Tools > Macros > Run Macro to open the Macro Selector dialog (see
Figure 309).
2) Select the library and module in the Library list (left hand side).
3) Select the macro in the Macro name list (right hand side).
4) Click Run to run the macro.
Although you can use Tools > Macros > Run Macro to run all macros, this is not
efficient for frequently run macros. A more common technique is to assign a macro to
a toolbar button, menu item, keyboard shortcut, or a button embedded in a
document. While choosing a method, it is also good to ask questions such as:
• Should the macro be available for only one document, or globally for all
documents?
• Does the macro pertain to a specific document type, such as a Calc document?
• How frequently will the macro be used?
The answers will determine where to store the macro and how to make it available.
For example, you will probably not add a rarely used macro to a toolbar. To help
determine your choices, see Table 4.
Table 4. Methods for starting a macro
Type OpenOffice.org Document Type Document
Toolbar No Yes Yes
Menu No Yes Yes
Shortcut Yes Yes No
Event Yes No Yes
338 Getting Started with OpenOffice.org 3.3
Comments to this Manuals