NativeExcel2 for .Net Developer's Reference

IRange.ClearCommentsMethod

Clears all cell comments from the specified range.

[Visual Basic]
SubClearComments()
[C#]
voidClearComments();
[C++]
voidClearComments();
[JScript]
functionClearComments();

Example

The following example clears all cell comments from the range A1:F5.

[C#]
book.Worksheets[1].Range["A1:F5"].ClearComments();
[VisualBasic]
book.Worksheets(1).Range("A1:F5").ClearComments()
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1:F5"]->ClearComments();

See Also

IRange Interface | NativeExcel Namespace