LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default c# programmatically grouping a range of cells

I am looking to group groups of consecutive rows at the same level, for example
group rows 11-26 and then group 27-42 and the group 43-58, etc

I've been using this to group
range = sheet.Rows[string.Format("{0}:{1}", startRow, endRow), Type.Missing]
as Range;
range.Group(Type.Missing, Type.Missing, Type.Missing, Type.Missing);

problem is, when it's done it's grouped from 11-58 and not in the in

this is what I would like it to look like when I am finished

http://img113.imageshack.us/img113/953/excello0.jpg

any suggestions?
 
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
Programmatically Name a Range Jon Peltier Excel Programming 0 January 10th 07 07:32 PM
Selecting range programmatically Barb Reinhardt Excel Programming 1 September 20th 06 01:58 PM
increase range programmatically geebee Excel Programming 1 September 12th 06 04:01 PM
Programmatically defining dynamic range TempestFyre Excel Programming 3 June 28th 06 07:44 AM
How do I programmatically specify a range. Hari[_3_] Excel Programming 4 January 17th 05 03:31 PM


All times are GMT +1. The time now is 10:20 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"