How to fill color any cell in excel

7 ビュー (過去 30 日間)
Manh Cuong Bui
Manh Cuong Bui 2017 年 12 月 16 日
コメント済み: Manh Cuong Bui 2017 年 12 月 18 日
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 件のコメント
KL
KL 2017 年 12 月 16 日
and why do you want to do it with matlab?

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2017 年 12 月 16 日
Use ActiveX, like in the attached demo.
The line you want to have is:
Excel.Worksheets.Item(1).Range(cellReference).Interior.ColorIndex = cellFillColorIndex;
  1 件のコメント
Manh Cuong Bui
Manh Cuong Bui 2017 年 12 月 18 日
Thank you very much! can you give me an example that use this statement: Excel.Worksheets.Item(1).Range(cellReference).Interior.ColorIndex = cellFillColorIndex;

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeActiveX についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by