NamedRange.Ungroup Method
Promotes the NamedRange control in an outline (that is, decreases its outline level).
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
Function Ungroup As Object
Object Ungroup()
Return Value
Type: System.Object
Remarks
The NamedRange control must be a row or column, or a range of rows or columns. If the NamedRange control is in a PivotTable report, this method ungroups the items contained in the NamedRange control.
.NET Framework Security
- 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.