Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
The following code example sets a NamedRange control that includes cells A1 through A5 to random values, and then uses the method to remove the NamedRange control. Note that although the NamedRange control is deleted, cells A1 through A5 retain their values.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.