Excel Conditional formatting for String
조회 수: 14 (최근 30일)
이전 댓글 표시
Hello,
I am trying to set excel conditional formatting cell fill, based on cell value which is a string. Can someone help me with the right code?
xlCellValue = 1;
xlEqual = 3;
Excel.Range(['G2:G' num2str(lastrow)]).Select;
Excel.Selection.FormatConditions.Add(xlCellValue, xlEqual, '=ABC');
Excel.Selection.FormatConditions.Item(3).Interior.ColorIndex = 46;
Thanks
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!