Difference between revisions of "Documentation/OOoAuthors User Manual/Getting Started/Getting Started with Macros"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Clean up TOC and category references)
Line 1: Line 1:
 +
{{DISPLAYTITLE:Getting Started with Macros
 
{{Documentation/GSMacroTOC
 
{{Documentation/GSMacroTOC
 
|ShowPrevNext=block
 
|ShowPrevNext=block
Line 4: Line 5:
 
|NextPage=Documentation/OOoAuthors User Manual/Getting Started/Creating a simple macro
 
|NextPage=Documentation/OOoAuthors User Manual/Getting Started/Creating a simple macro
 
}}
 
}}
This is Chapter '''17''' of '''Getting Started with OpenOffice.org 2.x''' (Third edition), produced by the [http://oooauthors.org/ OOoAuthors group]. A PDF of this chapter is available from the [http://documentation.openoffice.org/manuals/oooauthors2/ OOoAuthors Guides page] at OpenOffice.org.
+
This is Chapter '''17''' of '''Getting Started with OpenOffice.org 2.x''' (Fourth edition), produced by the [http://oooauthors.org/ OOoAuthors group]. A PDF of this chapter is available from the [http://documentation.openoffice.org/manuals/oooauthors2/ OOoAuthors Guides page] at OpenOffice.org.
  
 
== Your first macro ==
 
== Your first macro ==
Line 11: Line 12:
 
OpenOffice.org macros are usually written in a language called StarBasic, or just abbreviated Basic. Although you can learn Basic and write macros, there is a steep learning curve to writing macros from scratch. The usual method for a beginner is to use the built-in macro recorder, which records your keystrokes and saves them for use.
 
OpenOffice.org macros are usually written in a language called StarBasic, or just abbreviated Basic. Although you can learn Basic and write macros, there is a steep learning curve to writing macros from scratch. The usual method for a beginner is to use the built-in macro recorder, which records your keystrokes and saves them for use.
  
Most tasks in OpenOffice.org are accomplished by “dispatching a command" (sending a command), which is intercepted and used. The macro recorder works by recording the commands that are dispatched (see [[#The dispatch framework|The dispatch framework]]).
+
Most tasks in OpenOffice.org are accomplished by “dispatching a command" (sending a command), which is intercepted and used. The macro recorder works by recording the commands that are dispatched (see [[Documentation/OOoAuthors User Manual/Sometimes the macro recorder fails#The dispatch framework|The dispatch framework]]).
  
 
{{CCBY}}
 
{{CCBY}}
 
[[Category:Getting Started (Documentation)]]
 
[[Category:Getting Started (Documentation)]]

Revision as of 02:35, 25 May 2008

{{DISPLAYTITLE:Getting Started with Macros


This is Chapter 17 of Getting Started with OpenOffice.org 2.x (Fourth edition), produced by the OOoAuthors group. A PDF of this chapter is available from the OOoAuthors Guides page at OpenOffice.org.

Your first macro

A macro is a saved sequence of commands or keystrokes that are stored for later use. An example of a simple macro is one that “types" your address. The OpenOffice.org macro language is very flexible, allowing automation of both simple and complex tasks. Macros are especially useful to repeat a task the same way over and over again.

OpenOffice.org macros are usually written in a language called StarBasic, or just abbreviated Basic. Although you can learn Basic and write macros, there is a steep learning curve to writing macros from scratch. The usual method for a beginner is to use the built-in macro recorder, which records your keystrokes and saves them for use.

Most tasks in OpenOffice.org are accomplished by “dispatching a command" (sending a command), which is intercepted and used. The macro recorder works by recording the commands that are dispatched (see The dispatch framework).

Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools