NamedRange::Clear Method ()
Clears the entire NamedRange control.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
The following code adds a note and some text to a NamedRange control and then displays a message box that prompts you to clear the cells by using the Clear method.
This example is for a document-level customization.
Show: