Remove Microsoft® Excel File Annotations via .NET

Add or delete Excel files annotations using C# code within .NET based applications.

 

.NET Excel Library provides support to manage annotations at cell level by adding, accessing and removing comments. Using comments at cell level, relevant information can be stored for end users. Supported file formats include ODS, XLS, XLSX, XLSB and XLSM.

Excel Files Data Annotations

Managing Comments in Worksheets - There is not any limit that how many comments a sheet has in MS Excel. One can add as much as of application requirement. We will use the Comment Class for all of this functionality.

  • Load Excel file using Workbook class object
  • Acess the relevant Worksheet and its relevant Cell index
  • Call RemoveAt with the Cell Id to remove it
  • Use Note property for adding comments content
  • Save the workbook before & after calling RemoveAt method to compare
C# Code to Access, Insert and Delete Excel Files Cell Comments