You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's POJO (plain old JS objects) down to the core, so you can duplicate the worksheet by roundtripping through JSON:
/* Assuming:- `wb` is the original workbook- `name` is the name of the sheet you want to duplicate- `new_name` is the new name*/varws=wb.Sheets[sname];// get original worksheetvarnew_ws=JSON.parse(JSON.stringify(ws));// make a copy of the objectXLSX.utils.book_append_sheet(wb,new_ws,new_name);// append the worksheet
Is there a way to duplicate a worksheet in a workbook? Thanks!
The text was updated successfully, but these errors were encountered: