Re: Using VBA to split a document into sections

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Colin,

If the split should occur somewhere other than exactly at the 250th
character, what determines where it is?

Also, from your second pararaph, I assume that you don't want to
insert _section breaks_ (what Word considers a "section") but just "a
couple of carriage returns" (paragraph marks). Are you sure about
this? What's the point of the exercise -- what will you do with the
document after the macro runs?

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Thu, 28 Dec 2006 23:19:10 +0000, Colin Hayes
<Colin@xxxxxxxxxxxxxxxxxx> wrote:


Hi

I need to run a small macro to split a passage into sections each
containing 250 characters (including spaces) or less.

Ideally it would split the passage on the page with a couple of carriage
return between each section.

Is this possible?

Grateful for any help.



Best Wishes


Colin
.



Relevant Pages

  • How to replace a string of characters with the count of the charac
    ... I have what seemed at first to be a trivial task for a Word 2003 SP2 macro ... A subsequent Search/Replace on the text added a carriage return after every ... character, the result was sorted, followed by another Search/Replace to ... .MatchWholeWord = False ...
    (microsoft.public.word.vba.general)
  • Remove Line Breaks.
    ... Carriage Return which the ASCII for that is Chr ... In general to see the ASCII code of any character in any ... >how would I write a simple macro for this? ...
    (microsoft.public.access.formscoding)
  • Re: Warp and Weft of stories
    ... Much was at stake, Geflan's honour, ... >> Geflan's future, but not his life. ... might make the rest of the passage equally strong. ... character), characterisation (rather than what Rhailed feels or guesses ...
    (rec.arts.sf.composition)
  • Re: Writing the Classic Movie Ending (How to Finish your Screenplay!)
    ... against the revision-resistant passage. ... emotional loads or contexts for locations, you may be able to shorten the ... Usually a combination of character reaction and word-choice. ...
    (rec.arts.sf.composition)
  • Re: How to remove automatically some pages?
    ... Word MVP web site http://word.mvps.org ... pages using tha macro from you. ... without the extra character. ...
    (microsoft.public.word.newusers)