Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default Indenting and sorting

I got a sheet with products, having ProdNo, Name and so on. The sheet is created from another application, and uses ". " in ProdNo to symbolize one level of indendation, like so:

ABC001
.. ABC002
.. . ABC003
.. . ABC004
.. ABC005

In this hierarchy ABC0001 contains 2 products and ABC002 contains 2 products. My task is to

1. Replace each ". " with an indent.
2. Sort each substructure.
3. Remove any duplicates.

The number of levels is unknown, so these tasks needs to be done recursively.

I'm not sure what approach to take. On one hand, I want an OOP approach, so I can have a row object that "knows" about its children, so I can sort one level without worrying about sub-levels. On the other hand, that probably means I have to store the whole tree in memory, which would be slow and costly. Any hints?

Gustaf
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
Can I stop the footer from indenting? Michelle Excel Discussion (Misc queries) 4 May 10th 10 02:17 AM
indenting VBA code John Keith Excel Programming 6 February 28th 09 03:20 AM
excel indenting a group of rows [email protected] Excel Discussion (Misc queries) 3 June 27th 07 05:11 PM
Tabbing/Indenting within a cell DianeMcP New Users to Excel 2 July 19th 05 05:33 PM
Indenting cells in Excel Beth Excel Discussion (Misc queries) 2 March 4th 05 12:47 AM


All times are GMT +1. The time now is 09:43 AM.

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"