Copy sheets from an excel workbook to a new created workbook with matlab

42 ビュー (過去 30 日間)
Ruth Pikovsky
Ruth Pikovsky 2021 年 11 月 11 日
回答済み: Prince Kumar 2022 年 3 月 29 日
Hello,
my question is how to use matlab to copy sheets from a specific workbook, create a workbook, and copy the sheets to the new workbook. I tried to following code:
wkbk = ExcelApp.Workbooks.Open(fullname);
wksheet = wkbk.Worksheets.Item('sheet1');
wksheet.Copy(wksheet);
but it copies the sheet into the same workbook and I wasn't sure how to create a new one and copy the sheet there.
I would highly appreciate your help.

回答 (1 件)

Prince Kumar
Prince Kumar 2022 年 3 月 29 日

カテゴリ

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

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by