Re: Using VBA to split a document into sections



In article <e6sqEc2KHHA.2028@xxxxxxxxxxxxxxxxxxxx>, Doug Robbins - Word MVP <dkr@xxxxxxxxxxxxxxxxxx> writes
Do you want the split before EACH number that is followed by a full stop?
Or, do you want two of more numbered list items together provided that the
total number of characters is such group does not exceed 250?



Hi Doug

No - it would split at the same point in the text that it splits now (as near to 250 characters as it can get) , but using Space Number as its cue rather than Space.

It means that the second and subsequent paragraphs will start with a number.


Here's an example :

1. Original text :

Tracks : 1. Money Money Money (3:08) 2. Honey Honey (2:55) 3. People Need Love (2:45) 4. He Is Your Brother (3:18) 5. Ring Ring (3:04) 6. Love Isn't Easy (2:53) 7. So Long (3:05) 8. Eagle (4:27) 9. Summer Night City (3:36) 10. Angel Eyes (4:19) 11. On And On And On (3:42) 12. When All Is Said And Done (3:17) 13. Under Attack (3:47)


2. 250 chars split at Space:

Tracks : 1. Money Money Money (3:08) 2. Honey Honey (2:55) 3. People Need Love (2:45) 4. He Is Your Brother (3:18) 5. Ring Ring (3:04) 6. Love Isn't Easy (2:53) 7. So Long (3:05) 8. Eagle (4:27) 9. Summer Night City (3:36) 10. Angel Eyes (4:19) 11.

On And On And On (3:42) 12. When All Is Said And Done (3:17) 13. Under Attack (3:47)



3. 250 chars split at Space Number

Tracks : 1. Money Money Money (3:08) 2. Honey Honey (2:55) 3. People Need Love (2:45) 4. He Is Your Brother (3:18) 5. Ring Ring (3:04) 6. Love Isn't Easy (2:53) 7. So Long (3:05) 8. Eagle (4:27) 9. Summer Night City (3:36) 10. Angel Eyes (4:19)

11. On And On And On (3:42) 12. When All Is Said And Done (3:17) 13. Under Attack (3:47)


I think that a split at Space Number would be neater , if it's possible.


Thanks for your help with this.


Best Wishes


Colin
.



Relevant Pages

  • Re: Writeup by Amit Klein (Trusteer): Address Bar Spoofing for IE6
    ... The address bar appears like ... This write-up presents two new phishing attack techniques, ... characters are not displayed in the address bar in some cases. ... It was also verified that BIND 9 (the most popular DNS server ...
    (Bugtraq)
  • Re: Campaign for 4ed features
    ... Circumstance bonus, Morale bonus, Luck bonus, Sacred bonus, ... Two things giving different bonuses to the ... characters, and not a single one needed a table for any of those things. ... let's take the attack and damage tables. ...
    (rec.games.frp.dnd)
  • Re: [Full-disclosure] FW: Introducing a new generic approach to detecting SQL injection
    ... sql injection attack using the character set? ... characters in a legitimate query will only be in the set, ... > encoding, decoding and escaping. ...
    (Full-Disclosure)
  • Re: YANI: Rage.
    ... The kind of rage I have in mind for this YANI would be ... > Or maybe hacking through a large number of monster very quickly. ... characters would get armour-damage? ... >> - If there is a target adjacent suitable for attack, ...
    (rec.games.roguelike.nethack)
  • Re: Various impressions obscure Saturn games Continued
    ... The game opens with an incredibly corny intro, ... The game has 8 selectable characters. ... Ramming attack and force field-like attack ... Her "A" button shoots out a single ray, ...
    (rec.games.video.sega)

Loading