Determining number of Outline levels

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When columns are grouped, a variant is assigned to the Outline.ShowLevels
argument for ColumnLevels (e.g., ActiveSheet.Outline.ShowLevels RowLevels:=0,
ColumnLevels:=2).

I need to run a macro that determines the number of levels there are on an
activesheet. Any ideas?
 
You would have to loop through the appropriate rows or columns and check the
OutlineLevel property of the range. Keep track of the highest number.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top