将单元格的背景色设置为单元格中数据的RGB值

问题描述:

我有一列包含RGB值,例如:

I have a column containing RGB values, e.g.:

127,187,199
67,22,94

在Excel中,有什么方法可以用来设置单元格的背景颜色?

In Excel, is there any way I can use this to set the background colour of the cell?

您可以使用VBA-类似于

You can use VBA - something like

Range("A1:A6").Interior.Color = RGB(127,187,199)

只需传递单元格值.