The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
i have an excel sheet which contains macros in 3 modules, when i try to copy all the worksheets to another workbook the modules are not copied. Can u provide me code snippet to perform this?
GMGeetha M Syncfusion Team September 15, 2009 04:51 AM UTC
Hi Senthil,
The macros are stored in the workbook and they won't be copied when each worksheets are copied. You may need to generate a new workbook from the existing one. IWorkbook workbook = application.Workbooks.Open(@"..\..\TestSample.xls"); workbook.SaveAs("Sample.xls"); workbook.Close(); excelEngine.Dispose();
Please try this and let me know if you have any questions.