Ask Your Question
0

replace text with field

asked 2018-10-28 23:19:29 +0200

rapple gravatar image

I have several documents that would greatly benefit from some simple automation. Specifically I want to use doc information fields to be able to quickly reuse generic documents with different participants etc. Fields are easier and safer to edit than blindly edit/replacing text strings.

The documents are already written and they aren't short, so it's no help to use any form of autotext to enter the fields, therefore I just want to do a controlled one by one replacement with edit replace.

In Word, although there is no way to specify fields in the edit/replace dialogue one can insert the desired field into the document, then copy this from the document and then paste this into the replace field, this then allows the standard edit replace function to change text to fields within the document.

Having tried this in Libre Office it doesn't work, the result is that the text of the field in the document is pasted into the replace field in the dialogue. However I can see no other options that allow me to specify a field as the replacement.

Is it possible to do this at all in Libre Office, if so how?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-10-29 00:06:28 +0200

m.a.riosv gravatar image

Try this:
Insert the Field in the text.
Select and Copy the Field from the text.
With Find&Replace search for the word(s) to substitute.
Click on Find All.
The words to substitute are selected.
Paste now, word(s) should be replaced with the Field..

edit flag offensive delete link more

Comments

Apologies - been away for 4 months!!

That is a VERY counter-intuitive solution but it works! More importantly as I would need to skip through the finds and selectively replace, using find next in the dialogue and keyboard paste works as well.

Thank you for that. I don't get the logic, but as a workaround it'll do me. - Would be nice to have this done in the dialogue so it's all consistent.

rapple gravatar imagerapple ( 2019-03-21 16:11:09 +0200 )edit

We can't have all :)

m.a.riosv gravatar imagem.a.riosv ( 2019-03-21 19:34:08 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-10-28 23:19:29 +0200

Seen: 59 times

Last updated: Oct 29 '18