Bug 128885 - search and replace with makros
Summary: search and replace with makros
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Windows (All)
: medium enhancement
Assignee: Not Assigned
Depends on:
Blocks: Find-Search
  Show dependency treegraph
Reported: 2019-11-19 04:50 UTC by Katrin
Modified: 2020-09-16 04:06 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Note You need to log in before you can comment on or make changes to this bug.
Description Katrin 2019-11-19 04:50:15 UTC
I realy would be very relieved, if I can write makros for searching and replacing in long texts. In one case, I have to replace in my texts 54 diffrent passages, two times for all letteres of the german alphabet (a-z, ä, ü and ö, except sharp s). Now I have to search and replace one after the other. It would be a big relief to me just start a Makro and not to search all the passages one by one 54 times! (for example: a1 will be replaced by A1, a2 - A1, b1 - B1, b2 - B2, and this for 27 letters!)

Steps to Reproduce:
1. the command "search and replace" is not supported in makros

Actual Results:
I have to search and replace one by one 

Expected Results:
I make a makro with all I need, just click it and I have not the worry anymore, I could missout something

Reproducible: Always

User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: de
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 Dieter 2019-11-20 12:36:33 UTC
Thank you for reporting this bug. But use case is not clear to me. I'm, sure you know that you can replace all in the Find&Replace Dialog. Perhaps also the extension AltSearch can solve your problem.

If the problem still persists, please give a more detailed step-by-step instruction about the problem.

Comment 2 Katrin 2019-11-20 22:12:24 UTC
As I write, I use this Find&Replace Dialog, but I have to use it a few times in the row. I tried AltSearch, but it doesn't help me. I read somewhere, Libre makros don't support the search and replace command at all. That's the point. My request is, this would be changed, so I can write markos for serching and replacing more than one time at once.
For exampe, you write a story for a film. In the first line you have to write the name of the character. But while writing, you short the name, e.g. DT = Donald Trump, AM = Angela Merkel, and so on. You may have 20 charakters and have to replace the shortcuts by the full name. You have to do it 20 times. It would be easier to write a makro for one, copy this, change the relevant entries and just start it. If you write more of the story, you just have to run the makro.
Comment 3 QA Administrators 2019-11-21 03:33:39 UTC Comment hidden (obsolete)
Comment 4 Dieter 2019-11-21 18:44:25 UTC
(In reply to Katrin from comment #2)
> I read somewhere,
> Libre makros don't support the search and replace command at all. That's the
> point. My request is, this would be changed, so I can write markos for
> serching and replacing more than one time at once.

Sorry, I don't know anything about that. Perhaps somebodey else can help.
Comment 5 Xisco Faulí 2020-02-17 11:22:24 UTC
Hello Katrin,
You can use UNO API for that. Sample https://stackoverflow.com/questions/32670265/libre-office-macro-find-replace-formatted-text
is it what you are looking for ?
Comment 6 QA Administrators 2020-08-16 04:28:28 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2020-09-16 04:06:05 UTC
Dear Katrin,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team