Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 262
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outline(grouping) more than 8 levels dk96m Excel Discussion (Misc queries) 1 October 26th 09 06:10 PM
Subtotal error to expand Outline Levels Michelle Excel Discussion (Misc queries) 1 October 4th 07 12:31 AM
"Data Group and Outline Group" feature Limited to 8 levels MarekMG Excel Discussion (Misc queries) 3 May 25th 07 06:12 PM
outline...hide levels icebreaker914 Excel Programming 1 June 24th 05 08:05 AM
Auto generation of 3 levels of running number hamiraj Excel Programming 1 December 27th 04 10:17 AM


All times are GMT +1. The time now is 01:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"