Range.OutlineLevel (Excel)

Returns or sets the current outline level of the specified row or column.

Level one is the outermost summary level.


Worksheets("Sheet1").Rows(2).OutlineLevel = 1