How to fill color any cell in excel

4 Ansichten (letzte 30 Tage)
Manh Cuong Bui
Manh Cuong Bui am 16 Dez. 2017
Kommentiert: Manh Cuong Bui am 18 Dez. 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!
  1 Kommentar
KL
KL am 16 Dez. 2017
and why do you want to do it with matlab?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 16 Dez. 2017
Use ActiveX, like in the attached demo.
The line you want to have is:
Excel.Worksheets.Item(1).Range(cellReference).Interior.ColorIndex = cellFillColorIndex;
  1 Kommentar
Manh Cuong Bui
Manh Cuong Bui am 18 Dez. 2017
Thank you very much! can you give me an example that use this statement: Excel.Worksheets.Item(1).Range(cellReference).Interior.ColorIndex = cellFillColorIndex;

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by