I suspect that the OP want the person's age to be calculated everytime
something is changed rather than just once and for all. If name and date are
changed the correct age is supposed to be recalculated, or did I
misunderstand the whole thing?
Eugénio,
I don't know if this is an acceptable way to do it, but you could create a
spreadsheet where names, birth date and age are stored as a
database. Instead of typing name etc in the Writer document, insert
Field command -> Others -> Database -> Browse for your spreadsheet and
add it to the list and use it for name etc.
When printing, you can select one or more names to be printed out.
Another solution COULD be to use one or more tables, I guess. I am sure
someone will provide a way better solution for you.
Johnny Andersson
2007/3/5, Dan Lewis <[EMAIL PROTECTED]>:
On Monday March 05 2007 6:01 am, Eugénio Varejão wrote:
> Good day,
>
> I'm using OO Writer to write a contract between a person and an
> institution. I want calculate in text the age of the individual: I
> have a the born date and the present day. How can do this?
>
> Regards,
>
> Eugénio Varejão
Open Calc. (File > New > Spreadsheet) Type this formula:
=YEARS("born date";TODAY();0)
Make sure that the date the person was born is enclosed in
parentheses. (For example, use 6/8/1995) The formula written:
=YEARS("6/8/1995";TODAY();0)
Then copy and Paste Special (Edit > Paste Special). Select
Unformated text from the list and click OK. You can then delete the
spreadsheet.
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]