Forum Discussion
2076637698
Jul 24, 2024Copper Contributor
How to get the rgb or hex of a color through the theme
I used exceljs to read the theme of the cell, but I don't know how to convert it to rgb or hex. I hope to provide a tool or method to get the color.
- JKPieterseSilver ContributorCan't you just get the color property from the rangefill object?
https://learn.microsoft.com/en-us/javascript/api/excel/excel.rangefill?view=excel-js-preview#excel-excel-rangefill-color-member