Question: What is the starting point? I mean, how does the user obtain
the code? Is this a copy and paste thing, or is it in a library that can
be downloaded? If desired, this could easily turned into an extension
with a menu.
You must choose where to store the macros. If the macros are frequently
used, perhaps they can be stored in the Standard Library. My
recommendation, however, is that they be stored in a specific library.
Perhaps I will name the library TJLib.
1. Use Tools > Macros > Organize Macros > OpenOffice.org Basic to open
the OOo Basic Macros dialog.
2. Click the organizer button to open the macro organizer.
3. Click on the Libraries tab.
4. Make certain that the Location drop-down displays "My Macros & Dialogs".
5. Click the New button. For the library name, use TJLib (or pick a more
appropriate name).
6. Click the Modules tab.
7. Select TJLib and expand the entries. There should be a module shown
as "Module1". In the unlikely event that it does not exist, Select TJLib
and click on New and create Module1.
8. Select Module1 in the TJLib and click Edit to open the Basic IDE.
9. In the Basic IDE, copy all of TJ's code and replace what ever is
already in the IDE.
10. There is more than one way to run the macro. Press F5 to run the
macro. You can also click on the "Run Basic" button in the toolbar.
Hope this provides a sufficiently detailed start.
On 07/22/2010 12:39 AM, Jean Hollis Weber wrote:
We need a short set of instructions for OOoAuthors volunteers explaining
how to add TJ's code for cleaning up wiki output to the macros on a
volunteer's OOo setup.
A variation on these instructions might also go well in Getting Started
with Macros (Ch13 of GS), which has a section on "Writing macros without
the recorder" with an example but no instructions on how to do it.
Can someone put a draft together, please? Needs to be written at a very
basic level; many volunteers (and most readers of the GS book) have
never done this before.
Jean
--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info: http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]