Adding a Macro to a Document

"-->

Perhaps the most useful thing you can do with macros is add them to other documents, such as Web pages or presentations. Web is full of features that let you set up hyperlinks to macros, Basic scripts, and JavaScript. Even simple macros such as opening a new file and typing a few lines of text, or deleting lines or objects in the current or another document, or can be effective and useful within documents such as presentations and Web pages.

Table A-1 summarizes the ways you can add macros to documents, and where to find that information.

Table A-1. Adding macros to each type of document

Feature

Where to go to find the information

Interaction

Interaction Effects: Run Macros and More on page 717

Form functions

Chapter 36, Creating and Using Forms, Controls, and Events , on page 921

Hyperlinks

Using Macros, Scripts, and Events on page 487

Shortcut keys

Assigning a Shortcut Key to a Macro on page 972

Note

Most of the macro-insertion features let you insert a macro from the Standard and other libraries, and from the document you're currently in, but not from any other documents you've created. If you're having trouble finding the macro you want, it's probably in a separate document. You'll need to cut and paste it into a module in the Standard library, a new library, or create a module for it in your current document.




OpenOffice. org 1.0 Resource Kit
OpenOffice.Org 1.0 Resource Kit
ISBN: 0131407457
EAN: 2147483647
Year: 2005
Pages: 407

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net