[Solved] Embed a newline into Text Formula: buggy

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
PY Delens
Posts: 61
Joined: Wed Nov 12, 2008 10:39 am

[Solved] Embed a newline into Text Formula: buggy

Post by PY Delens »

SOLVED
Thank you

Bonjour,

I need to mimic the "CTRL-ENTER" behaviour in a CALC formula; but:

although Chr(13) and Chr(10) functions are valid in OO Basic, I found no way to implement this concatenation in a formula.

Ex:

Code: Select all

=C35 & chr(13) & chr(10) & C36
From another forum ( http://www.oooforum.org/forum/viewtopic.phtml?t=63397 ) , I got advice to upgrade OOo to 3.0.0 and to a patched version ( http://go-oo.org/download/ ).
But these steps didn't help: no change, the CRLF is not achieved.

Please help
Thanks
_________________
Pierre-Yves Delens, eng-arch.
Last edited by PY Delens on Thu Nov 13, 2008 5:43 pm, edited 1 time in total.
OOo 3.0.X on Ms Windows XP + Vista
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: embed a newline into Text Formula: buggy

Post by Villeroy »

OOo does not support this concatenation. If you try it directly in the cell or through the API makes no difference at all. Since OOo is not a Windows application the formula would be: =A1&CHAR(10)&A2
You may try the new Novel build of OOo, which I believe to have the required patch: View first unread post OpenOffice.org 3.0 Novell Edition for Windows released!
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
PY Delens
Posts: 61
Joined: Wed Nov 12, 2008 10:39 am

Embed newline into Text Formula: Novell for solution

Post by PY Delens »

Thank you.

What if I install Novell's version on one station, but read the sheet from another seat with standard OOo?
OOo 3.0.X on Ms Windows XP + Vista
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Embed a newline into Text Formula: buggy

Post by Villeroy »

PY Delens wrote:Thank you.

What if I install Novell's version on one station, but read the sheet from another seat with standard OOo?
It will certainly fail. I think, the patch will be integrated in OOo 3.1.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply