ShowLevels Method Example

This example displays row levels one through three and column level one of the outline on Sheet1.

Worksheets("Sheet1").Outline _
    .ShowLevels rowLevels:=3, columnLevels:=1