如何根据 ooo-calc 上的单元格值设置单元格颜色?

发布于 2024-10-01 09:16:26 字数 183 浏览 2 评论 0原文

我可以使用条件格式更改单元格的样式。但在那里我最多只能处理 3 个案例。

我想要做的是获取单元格的值,以某种方式转换它并将结果设置为单元格背景颜色。

最简单的示例是值在 0 到 10 之间的单元格,从而导致白色和黑色之间的灰色阶跃。

这可能吗?有没有办法自动设置单元格的背景颜色?

谢谢!

I can change the style of a cell using conditional formatting. But there I would be limited to a maximum of 3 cases it can handle.

What I want to do is to get the value of a cell, convert it in a certain way and set the result as the cells background-color.

The simplest example would be cells with values between 0 and 10, resulting in gray-steps between white and black.

Is this possible? Are there ways to set the background-color of a cell automatically?

Thx!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

ぇ气 2024-10-08 09:16:26

这已在 libreoffice 3.6 中实现(请参阅发行说明)

This has been implemented in libreoffice 3.6 (see the release notes)

软甜啾 2024-10-08 09:16:26

按照您想要的方式设置一个单元格的格式(而不是您想要有条件地设置格式的单元格)。

按 F11 进入“样式”对话框

使用右上角的按钮,即“从选择中新建样式”

键入所需的名称,例如 BlackBack

然后对相关单元格进行条件格式设置,选择 BlackBack


Source: http://www.oooforum.org/forum/viewtopic.phtml?t=61294

请注意,您可以在 OOo Calc 的“格式”菜单下找到“条件格式”。

Format one cell how you want (not one you want to conditionally format).

Press F11 to get the Styles dialogue box

Use the button one from the top right, which is "New Style From Selection"

Type the name you want, e.g. BlackBack

Then do the conditional formatting of the relevant cells, choosing BlackBack


Source: http://www.oooforum.org/forum/viewtopic.phtml?t=61294

Note that you can find "Conditional Formatting" under the Format menu in OOo Calc.

怂人 2024-10-08 09:16:26

正如 Joey 所说:“据我所知,OOo 中的条件格式无法做到这一点。不过,Excel 在那里没有问题”。
这根本不可能...:-/

As Joey said: "As far as I can see conditional formatting in OOo cannot do that. Excel has no problems there, though."
It's simply not possible... :-/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文