Copying a worksheet in OpenXML that has previously been modified
I have followed the routine used here to copy a worksheet in a workbook into the same workbook by using .AddPart<>() and a temporary workbook to serve as a middleman, but have come up with some issues. Prior to copying the worksheet, I have made modifications to it. However, the copied version of the worksheet retains the original sheet, not the modified one. Here's the code: Document = SpreadsheetDocument.Open(filename, true); SetupPages(0, nSections); CopySheet(1); SetupPages() simply gets a worksheet which has a table with only one row and then copies that row nSections - 1 times, so that