[GH-ISSUE #271] Copy one sheet to another and also add new content #215

Closed
opened 2026-05-05 11:57:11 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @sapomuyverde on GitHub (Jan 23, 2020).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/271

Originally assigned to: @jmcnamara on GitHub.

Hi,
I have created a sheet in excel, now I require exactly the same content of the first sheet in the second sheet and in the second sheet I must also add a promissory note (it is an invoice report), is there any way/trick to be able to do this?, any ideas?.

I appreciate your help and your time.

Regards,
Javier

Originally created by @sapomuyverde on GitHub (Jan 23, 2020). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/271 Originally assigned to: @jmcnamara on GitHub. Hi, I have created a sheet in excel, now I require exactly the same content of the first sheet in the second sheet and in the second sheet I must also add a promissory note (it is an invoice report), is there any way/trick to be able to do this?, any ideas?. I appreciate your help and your time. Regards, Javier
Author
Owner

@jmcnamara commented on GitHub (Jan 23, 2020):

There isn't any way to copy one worksheet to another.

The simplest, and only way, is to create a function that takes a worksheet pointer and applies a standard formatting.

<!-- gh-comment-id:577862402 --> @jmcnamara commented on GitHub (Jan 23, 2020): There isn't any way to copy one worksheet to another. The simplest, and only way, is to create a function that takes a worksheet pointer and applies a standard formatting.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#215
No description provided.