Turn all excel sheet background to white

1 回表示 (過去 30 日間)
Emily
Emily 2022 年 9 月 6 日
回答済み: dpb 2022 年 9 月 7 日
I'm trying to turn all the excel background color into white.
WB.Worksheets.Item().Range().Interior.ColorIndex=2;
I'm not sure what to put in for both () to have it look for all the areas with datas.
  1 件のコメント
dpb
dpb 2022 年 9 月 7 日
I don't recall what it's called OTOMH, but there's a property (or method?) that does return the used range in the workbook -- search for the Excel VBA doc for some phrase similar and you'll likely get a link the the MSDN VBA doc's that you can crib from the example code.

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

回答 (1 件)

dpb
dpb 2022 年 9 月 7 日

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by