Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default outline question

Start by grouping each section individually to level 2. Then select the
entire selection you want to group as level 3 and group it again. This will
change the selection to a level 3 group.
--
If this helps, please remember to click yes.


"Kent McPherson" wrote:

I have a worksheet with two sections that both have outlines defined. I'd
like to be able to set the top section to level 3 and the bottom section to
level 2. I've set the entire sheet to level 3 and then tried this code but
it doesn't work. I get a run time error because the selection is not an
outline object. Is there a way to set the levels of two different sections
to different levels?

'
' Show only 2 levels
'
Range("A" & start_trn_row).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
With Selection

.Outline.ShowLevels RowLevels:=2

End With



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 help required ArcticWolf Excel Worksheet Functions 3 December 18th 08 02:04 PM
Data Subtotal/Outline Question Tonya Excel Discussion (Misc queries) 1 June 28th 06 11:00 PM
outline Vinaya Excel Worksheet Functions 2 June 22nd 06 08:01 PM
Outline a worksheet Ted Metro Excel Discussion (Misc queries) 1 October 12th 05 11:41 PM
Outline.ShowLevels KaiRich Excel Programming 2 June 25th 04 01:48 AM


All times are GMT +1. The time now is 05:23 PM.

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

About Us

"It's about Microsoft Excel"