Getting Started with Macros

From Apache OpenOffice Wiki
< Documentation‎ | OOo3 User Guides‎ | Getting Started
Revision as of 23:24, 1 March 2010 by Clairedwood (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is Chapter 13 of Getting Started with 3.x, produced by the OOoAuthors group. A PDF of this chapter is available from this wiki page.

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 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. 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 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