+ Reply to Thread
Results 1 to 2 of 2

Determining number of Outline levels

  1. #1
    Keith
    Guest

    Determining number of Outline levels

    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?

  2. #2
    Tom Ogilvy
    Guest

    Re: Determining number of Outline levels

    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.

    --
    Regards,
    Tom Ogilvy

    "Keith" <[email protected]> wrote in message
    news:[email protected]...
    > 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?




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1