| View previous topic :: View next topic |
| Author |
Message |
MiraMike Newbie

Joined: 06 Dec 2004 Posts: 4 Location: Besancon, France
|
Posted: Tue Dec 07, 2004 1:39 am Post subject: Run a macro stored in a "free" file |
|
|
Hi experts !
I would like to know if it's possible to have a macro stored in a given file, not in an OO's tree (e.g: 'myProject/doc/myExporterMacro.xba'), which we could pass on command line macro's URL (something like 'ooffice -headless "macro:pathToMacro/macro.function()').
the aim is to have the macro's file managed in CVS, with the scripts automatically exporting the whole project's documentation to a standardized area (ISO rules ok... ) |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Tue Dec 07, 2004 8:14 am Post subject: |
|
|
It would be possible to have a pair of macros which install a free macro into the office, and then copy a macro from the office back to a free file.
You could call both the install and extract macros from the command line.
But you could not, AFAIK, execute a macro directly from a "free" file.
For more about extracting and installing macros using Basic code, see these....
The Quine program
http://www.oooforum.org/forum/viewtopic.php?t=10069
See the first example in this thread. It is not really a Quine. But it does show how to extract the text of a Basic program using Basic.
See the following items at OOoMacros.org....
Add On Installer
Add On Tool
See Andrew Pitonyak's Macro document, which can be found here. Section 5.29 Libraries may have what you need to know. _________________ Want to make OOo Drawings like the colored flower design to the left? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|