answered
2012-09-27 15:38:29 +0200
CyanCG
422 ● 2 ● 7 ● 17
http://waidanian.wordpres...
Do you have any programming background? If so and if you already know Python, then by all means do use it in Calc. All functions of the LibreOffice API can be accessed from the different languages; it is easier for beginners to use StarBasic, as it is straightforward, but Python is more "powerful", in a way, because it allows you to create new "UNO services", which more or less means adding new functionality that didn't exist in LibreOffice to begin with.
On the other hand, statements and functions are generally more verbose in, e.g., Python and JavaScript, than the equivalent statements and subroutines in Basic. At any rate, it is necessary to first understand the API functions (see the OpenOffice documentation wiki) before setting out to write complex macros.
Finally, it is important to note that the macros recorded with the experimental macro recorder use Basic, but do not use the API calls; instead, they use a service called the dispatcher, which is limited to emulating the commands issued by the user through the graphical user interface.