Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
458 views
in Technique[技术] by (71.8m points)

Count cells by color in excel with typescript

I am trying to count cells by color in Excel with typescript. But I can't get the color back for cells that are in a range: Example:

let MyData = Mysheet.getRange("A1:C20").getFormat().getFill().getColor();

How to retrieve the color format for the cells in the range assuming they are empty?. I have tried trying to use for each statement to validate all cells, but it doesn't work with a string.

Thanks a lot

question from:https://stackoverflow.com/questions/65944573/count-cells-by-color-in-excel-with-typescript

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...