Difference between revisions of "Documentation/DevGuide/Scripting/Running Macros"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (FINAL VERSION FOR L10N)
m
 
Line 7: Line 7:
 
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Scripting/{{SUBPAGENAME}}}}  
 
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Scripting/{{SUBPAGENAME}}}}  
 
  {{DISPLAYTITLE:Running Macros}}
 
  {{DISPLAYTITLE:Running Macros}}
To run a macro use the menu item '''Tools > Macros > Run Macro...''' This opens the Macro Selector dialog:
+
To run a macro use the menu item '''Tools > Macros > Run Macro…''' This opens the Macro Selector dialog:
  
 
[[Image:MacroSelectorDialog.png|none|thumb|400px|Macro Selector dialog]]
 
[[Image:MacroSelectorDialog.png|none|thumb|400px|Macro Selector dialog]]
Line 14: Line 14:
  
 
* My Macros (macros belonging to the current user)
 
* My Macros (macros belonging to the current user)
* {{PRODUCTNAME}} Macros (macros available to all users of the installation)
+
* OpenOffice Macros (macros available to all users of the installation)
 
* DocumentName Macros (macros contained in the currently active document)
 
* DocumentName Macros (macros contained in the currently active document)
 
Each of these entries can be expanded to show any macro libraries they contain. When a library has been selected, the macros contained in that library are displayed in the Macro name list box. When a macro is selected its description, if one exists, is displayed at the bottom of the dialog. Selecting a macro and clicking Run will close the dialog and run the macro. Clicking Cancel will close the dialog without running a macro.
 
Each of these entries can be expanded to show any macro libraries they contain. When a library has been selected, the macros contained in that library are displayed in the Macro name list box. When a macro is selected its description, if one exists, is displayed at the bottom of the dialog. Selecting a macro and clicking Run will close the dialog and run the macro. Clicking Cancel will close the dialog without running a macro.
  
Macros can also be run directly from the Macro Organizer [[Documentation/DevGuide/Scripting/Editing, Creating and Managing Macros|Editing, Creating and Managing Macros]] and from some of the macro editors.
+
Macros can also be run directly from the Macro Organizer [[Documentation/DevGuide/Scripting/Editing, Creating and Managing Macros|Editing, Creating and Managing Macros]] and from some macro editors.
  
 
{{PDL1}}
 
{{PDL1}}
  
 
[[Category:Documentation/Developer's Guide/Scripting]]
 
[[Category:Documentation/Developer's Guide/Scripting]]

Latest revision as of 18:09, 21 December 2020



To run a macro use the menu item Tools > Macros > Run Macro… This opens the Macro Selector dialog:

Macro Selector dialog

The Library list box contains a tree representation of all macro libraries. At the top level, there are three entries:

  • My Macros (macros belonging to the current user)
  • OpenOffice Macros (macros available to all users of the installation)
  • DocumentName Macros (macros contained in the currently active document)

Each of these entries can be expanded to show any macro libraries they contain. When a library has been selected, the macros contained in that library are displayed in the Macro name list box. When a macro is selected its description, if one exists, is displayed at the bottom of the dialog. Selecting a macro and clicking Run will close the dialog and run the macro. Clicking Cancel will close the dialog without running a macro.

Macros can also be run directly from the Macro Organizer Editing, Creating and Managing Macros and from some macro editors.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages