- https://www.mathworks.com/matlabcentral/answers/228912-copy-and-paste-excel-sheet-into-new-workbook?s_tid=answers_rc1-2_p2_MLT
- https://www.mathworks.com/matlabcentral/answers/478865-copy-an-excel-worksheet-from-one-workbook-to-another-with-matlab
Copy sheets from an excel workbook to a new created workbook with matlab
18 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (1)
Prince Kumar
am 29 Mär. 2022
Hi,
Please refer to the following answers:
Hope this helps!!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!