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 CenterFile Exchange에서 ActiveX에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by