We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All copied sheets reference the same underlying one. So modifying any sheet, it applies to all of them.
func sampleCopySheet() { wb := spreadsheet.New() defer wb.SaveToFile("error.xlsx") sheet := wb.AddSheet() sheet.Cell("A1").SetString("one") sheet, _ = wb.CopySheetByName("Sheet 1", "Sheet 2") sheet.Cell("A1").SetString("two") sheet, _ = wb.CopySheetByName("Sheet 1", "Sheet 3") sheet.Cell("A1").SetString("three") }
Correct result: "Sheet 1:A1" - "one"; "Sheet 2:A1" - "two" ; "Sheet 3:A1" - "three". How it is now: "Sheet 1:A1" - "three"; "Sheet 2:A1" - "three" ; "Sheet 3:A1" - "three".
The text was updated successfully, but these errors were encountered:
Looks like this requires a deep copy of the sheet contents. Maybe a new function called DeepCopySheetByName to keep compatibility.
Sorry, something went wrong.
No branches or pull requests
All copied sheets reference the same underlying one. So modifying any sheet, it applies to all of them.
Correct result: "Sheet 1:A1" - "one"; "Sheet 2:A1" - "two" ; "Sheet 3:A1" - "three".
How it is now: "Sheet 1:A1" - "three"; "Sheet 2:A1" - "three" ; "Sheet 3:A1" - "three".
The text was updated successfully, but these errors were encountered: