OK, the coding of a macro to do what you ask is possible but unlikely to actually satisfy you. All macros must be based on assumptions and it appears that the assumptions we would need to make are likely to be incorrect enough times that the result would be pointless.
If you had a VERY regular delimiting factor that lets us say this is the end of the project chunk then we could use that but you must never vary from that 'separator' or inadvertently include that separator in the middle of a project.
Based on your input information so far, I'm going to assume that your 'project' groups are delimited by empty paragraphs. If that is the case, I would start by moving each of these projects into table cells which would create a regular structure where the macro could now look at your content delimited by something more tangible and controllable. It would then be a far simpler task to add a column with a character count and sort the table based on that column.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|