How to fill color any cell in excel
4 views (last 30 days)
Show older comments
Manh Cuong Bui
on 16 Dec 2017
Commented: Manh Cuong Bui
on 18 Dec 2017

Hi I got a trouble. I have an excel table that contains even and odd values I want to find odd values and fill color it like the picture.
Thank you very much!
Accepted Answer
Image Analyst
on 16 Dec 2017
Use ActiveX, like in the attached demo.
The line you want to have is:
Excel.Worksheets.Item(1).Range(cellReference).Interior.ColorIndex = cellFillColorIndex;
More Answers (0)
See Also
Categories
Find more on ActiveX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!