_xlPackage.Workbook.Worksheets.Add("TedsWizard", _xlPackage.Workbook.Worksheets["Wizard"]);
or
_xlPackage.Workbook.Worksheets.Copy("Wizard", "TedsWizard");
All I get is a null reference error
System.NullReferenceException was unhandled by user code
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=EPPlus
StackTrace:
at OfficeOpenXml.ExcelWorksheets.Add(String Name, ExcelWorksheet Copy)
at OfficeOpenXml.ExcelWorksheets.Copy(String Name, String NewName)
I can add values to the "Wizard" Worksheet but I can't copy it
Comments: Is there a workaround for this issue?
or
_xlPackage.Workbook.Worksheets.Copy("Wizard", "TedsWizard");
All I get is a null reference error
System.NullReferenceException was unhandled by user code
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=EPPlus
StackTrace:
at OfficeOpenXml.ExcelWorksheets.Add(String Name, ExcelWorksheet Copy)
at OfficeOpenXml.ExcelWorksheets.Copy(String Name, String NewName)
I can add values to the "Wizard" Worksheet but I can't copy it
Comments: Is there a workaround for this issue?