OpenOffice.org OpenOffice - 3.2 Guía de inicio rápido Pagina 381

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 442
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 380
Figure 302: Select your macro and click Run
There are other methods to run a macro. For example, use Tools >
Macros > Organize Macros > OpenOffice.org Basic to open the
macro organizer, which contains a Run button as well. The author, an
avid macro writer, prefers the macro organizer because the dialog
usually opens faster, but the selection process may be slightly slower.
Viewing and editing the macro
You can view and edit the macro that was just created. Use Tools >
Macros > Organize Macros > OpenOffice.org Basic to open the
OpenOffice.org Basic Macros dialog (see Figure 302). Select the new
macro and click Edit to open the macro in the Basic IDE (Integrated
Development Environment).
Listing 1: Generated “EnterMyname” macro.
REM ***** BASIC *****
Sub Main
End Sub
sub EnterMyName
rem -------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem -------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
Chapter 13 Getting Started with Macros 381
Free eBook Edition
Vista de pagina 380
1 2 ... 376 377 378 379 380 381 382 383 384 385 386 ... 441 442

Comentarios a estos manuales

Sin comentarios