Turn all excel sheet background to white

1 Ansicht (letzte 30 Tage)
Emily
Emily am 6 Sep. 2022
Beantwortet: dpb am 7 Sep. 2022
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 Kommentar
dpb
dpb am 7 Sep. 2022
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

dpb
dpb am 7 Sep. 2022

Kategorien

Mehr zu Data Export to MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by