Name

worksheet.Outline

Synopsis

Returns an Outline object that represents the outline of a worksheet.

The following code enables automatic outlining for the active worksheet and then shows the top-level view of the outline:

ActiveSheet.Cells.AutoOutline
ActiveSheet.Outline.ShowLevels 1, 1

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.