C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,296 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi I have a requirement where in need to read excel from a location and update its certain cells and then save it to different location.I wrote a code snippet using ClosedXML
using (var workbook = new XLWorkbook(excelFilePath))
{ foreach (var worksheet in workbook.Worksheets)
{ // Your code to work with each worksheet goes here // ... }
// Save the workbook if needed workbook.SaveAs(excelFilePath);
}
Challenge - if the excel is in protectedMode nothing works... (Open Source - ClosedXML) Any help can get me going... Thnaks
Hi @SSinhg There is an article about this here: https://docs.closedxml.io/en/latest/features/protect.html