Find and replace a "user" font color

Discuss the word processor
Post Reply
AudioBabble
Posts: 5
Joined: Tue Nov 30, 2021 6:00 pm

Find and replace a "user" font color

Post by AudioBabble »

Hi folks...

I have a document in which a color is defined as "user" [highlight text>Format>Character>font color]

I want to replace this color throughout the document.

When I open Find>Format>FontEffects>Font color - the dropdown list does not include the "user" color.

Is there a way to replace the user color?
OpenOffice 4.1.8 - Win 10
JeJe
Volunteer
Posts: 2764
Joined: Wed Mar 09, 2016 2:40 pm

Re: Find and replace a "user" font color

Post by JeJe »

You may need to use a macro. There's one in the attached document... you put the color values in the text boxes and click the button.
Attachments
change colors.odt
(12.15 KiB) Downloaded 114 times
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
JeJe
Volunteer
Posts: 2764
Joined: Wed Mar 09, 2016 2:40 pm

Re: Find and replace a "user" font color

Post by JeJe »

Slightly easier to use version:
Attachments
change colors2.odt
(12.16 KiB) Downloaded 129 times
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Bill
Volunteer
Posts: 8932
Joined: Sat Nov 24, 2007 6:48 am

Re: Find and replace a "user" font color

Post by Bill »

You can use a color picker to get the RGB color values from Format > Character > Font Effects > Font Color, then add the color to the color table in Tools > Options > OpenOffice > Colors.
AOO 4.1.14 on Ubuntu MATE 22.04
erbsenzahl
Volunteer
Posts: 254
Joined: Tue Apr 18, 2017 8:23 am
Location: Germany

Re: Find and replace a "user" font color

Post by erbsenzahl »

LibreOffice 7.2.3.2
FindOutColor_Find&Replace.png
LibreOffice current versions 7 and OpenOffice 4.1.15
on LinuxMint 20 - 21 Mate, W10-64 pro
AudioBabble
Posts: 5
Joined: Tue Nov 30, 2021 6:00 pm

Re: Find and replace a "user" font color

Post by AudioBabble »

" You can use a color picker to get the RGB color values from Format > Character > Font Effects > Font Color, then add the color to the color table in Tools > Options > OpenOffice > Colors. "

When you say "a color picker" do you mean one outside of OpenOffice or is there one within the program?
OpenOffice 4.1.8 - Win 10
AudioBabble
Posts: 5
Joined: Tue Nov 30, 2021 6:00 pm

Re: Find and replace a "user" font color

Post by AudioBabble »

JeJe wrote:Slightly easier to use version:
the macro looks very useful - I've never used macros in OO before - how can I run this on my document?
OpenOffice 4.1.8 - Win 10
AudioBabble
Posts: 5
Joined: Tue Nov 30, 2021 6:00 pm

Re: Find and replace a "user" font color

Post by AudioBabble »

erbsenzahl wrote:LibreOffice 7.2.3.2
FindOutColor_Find&Replace.png
looks like libreoffice is going to be easier for this sort of thing - maybe I should download that instead...

do I still get to ask questions about it on this forum, or will have to join another?!
OpenOffice 4.1.8 - Win 10
JeJe
Volunteer
Posts: 2764
Joined: Wed Mar 09, 2016 2:40 pm

Re: Find and replace a "user" font color

Post by JeJe »

The idea of that document was you paste whatever into it and make the color change and paste back. It would need slightly different code to make the macro available for all documents.

You can use this forum for LO/OO or any other fork of the suite, as well as the dedicated LibreOffice forum that's there for LO too.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
AudioBabble
Posts: 5
Joined: Tue Nov 30, 2021 6:00 pm

Re: Find and replace a "user" font color

Post by AudioBabble »

JeJe wrote:The idea of that document was you paste whatever into it and make the color change and paste back. It would need slightly different code to make the macro available for all documents.

You can use this forum for LO/OO or any other fork of the suite, as well as the dedicated LibreOffice forum that's there for LO too.
Fantastic! thank you :)
OpenOffice 4.1.8 - Win 10
Post Reply