swampwiz wrote: ↑Sun Jun 09, 2024 1:25 pm
both of which are custom colors that for whatever reason have not persisted in the color palette
Color picker not showing current color
[Solved] I've accidentally modified a pre-defined color! (your own topic)
swampwiz wrote: ↑Sun Jun 09, 2024 1:25 pm
I have a spreadsheet with over 100K cells, and I'd like to swap a pair of background colors
When you use
styles instead of directly setting the cell background color with Format → Cells, then this task is trivial. You just select the two styles and change their background colors. All of the cells which use those styles are immediately changed.
You will continue to struggle with spreadsheets until you learn how to use styles. The best solution is to remove
all direct formatting in your entire spreadsheet, then create and apply styles to set the background colors and other formatting attributes like font, alignment, underlining, number format, etc. It is easy to apply a style to a range of cells by selecting them and double-clicking the style in Format → Styles and Formatting. You were
advised to use styles in 2016 so this mess is something you created for yourself. It is better to apply formatting as the
last step in creating a spreadsheet.
swampwiz wrote: ↑Sun Jun 09, 2024 1:25 pm
Would like an extension that can change all cells of a certain background color to another.
You could try
RGB which I found immediately by searching the
extension website for
color. But I don't think this will fix the underlying problem that your spreadsheet does not use styles. I have never installed any extensions from that website. If RGB doesn't seem to help for this task you can make the changes to the cell background colors with macros, as explained in these two topics. I would use a new range to get the background color of
every cell in the range which needs to be updated. Then I'd use Find&Replace to change the colors there as desired, for example swapping AABBCC with DDEEFF and leaving the other colors unchanged. Finally I'd set the color of
every cell in the range which needs to be updated to the new colors. You might need to modify the macro from the second topic a bit for your task. I do not offer to help with that.
Get cell color as RGB value in another cell
Set cell color from RGB value in another cell
If this solved your problem please go to your first post use the Edit ☐ button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
[Tutorial] Ten concepts that every Calc user should know
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).