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

조회 수: 29 (최근 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 CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by