On Thursday, September 19, 1996 at 1:00:00 AM UTC-6, Alastair Booker wrote:
Hi,
I have a LotusScript macro that makes changes to a document. In amongst these changes, I wish to add a value to the start of a text field, but on a new line
in that text field rather than just appended straight to what's already there.
I'm currently trying with this:
doc.Edit_History = "Change: " + Format$(Now(),"dd/mm/yy hh:mm:ss") + Chr$(13) +
Chr$(10) + doc.Edit_History(0)
But... the CR and LF get replaced by strange block characters after this has been run. Also, any new lines already in the text field (placed there by @NewLine from a formula-based macro) are changed to these characters...
Any ideas?
Thanks,
- Ali
([email protected])
This answer comes after 10 year. Was doubtful whether to post it.. But someone else may be benefited.
The following code will insert a line before and after insertion text.
uidoc.InsertText Chr$(10) & insertionText & Chr$(10)
I tried different combinations before arriving at this.
Thank you
Mert
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)