2012/10/20 Luuk <firstname.lastname@example.org>:
On 20-10-2012 17:14, Johnny Rosenberg wrote:
Once again I did it: I sent my reply directly to the OP, not to the
list. Sorry. *Sigh…*
Here's what I wrote, in case someone is interested:
When i go to
Tools/Macros/Organize Macros/LibreOffice Basic
Than i see i macro called 'CallUsLeapYear' under:
First you need to move or copy it to, I think it's called ”MyMacros &
What is the use of the macros in the place i mentioned,
if they cannot be used directly?
I would guess that they are supposed to be called from other Basic
sorry for posting to the group, and not replying to you personally ;)
But indeed, if i create a new macro in 'MyMacros&Dialogs' like this:
dim x as boolean
If CalIsLeapYear(i) Then
testleap = "J"
testleap = "N"
i can type '=testleap(2012)' in a cell
and it will return 'J'
Well, that's nice!
The first line of the function – dim x as boolean – seems to be a bit
necessary since you don't use x anyway, though.
By the way, 'J' and 'N' – is that for Ja and Nej (Swedish for Yes and No)…?
For unsubscribe instructions e-mail to: email@example.com
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy