NamedRange::Comment Property
Gets a Comment that represents the comment associated with the cell in the upper left corner of the NamedRange control.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Property Value
Type: Microsoft.Office.Interop.Excel::Comment^A Comment that represents the comment associated with the cell in the upper left corner of the NamedRange control.
The following code example creates a NamedRange and adds a comment to the cell. It then displays a message box that causes the comment to become visible if the user clicks OK.
This example is for a document-level customization.
Show: