I'm reading an Excel Workbook in a node.js application (TestCafe) with exceljs. I know how to retrieve the value of an Excel cell:
worksheet.getRow(rowNum).getCell( colName ).value
But I don't know how to retrieve the background color of this cell. I checked the exceljs documentation on Github, but couldn't see any hint on how to do this.
Asked
Active
Viewed 3,284 times
0

thomasreuter.vf
- 41
- 1
- 7
1 Answers
1
I found the answer by trying:
worksheet.getRow(rowNum).getCell(colName).fill.bgColor.argb;

thomasreuter.vf
- 41
- 1
- 7