Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
BlAzEmAsTeR BlAzEmAsTeR is offline
external usenet poster
 
Posts: 1
Default How do I separate text into 600-700 word blocks/parts?

I need Word to separate a document of about 24,300 words into 600-700 word
parts. It takes waaaaaaaaaaaay too long manually. If there is a way to do
this, please help! (Note: I would prefer it to separate at the end of the
sentance)

Cheers!
  #2   Report Post  
Posted to microsoft.public.word.pagelayout
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default How do I separate text into 600-700 word blocks/parts?

Hi,

You could do it with a macro like the following:

Sub Splitter()
Dim i As Long
Dim j As Long
Dim k As Integer
k = 0
With ActiveDocument
For i = 1 To .Sentences.Count
For j = 1 To .Sentences(i).Words.Count
k = k + 1
If k Mod 600 = 0 Then
.Sentences(i).InsertAfter (Chr(13))
k = 0
End If
Next
Next
End With
End Sub

The above macro inserts a paragraph break at the end of whichever sentence has
the 600th word in the current block. You can change the '600' in the code to
vary that.

Cheers

--
macropod
[MVP - Microsoft Word]


"BlAzEmAsTeR" wrote in message
...
| I need Word to separate a document of about 24,300 words into 600-700 word
| parts. It takes waaaaaaaaaaaay too long manually. If there is a way to do
| this, please help! (Note: I would prefer it to separate at the end of the
| sentance)
|
| Cheers!


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting WordPerfect 12 files to Word 2003 Curious New Users 4 May 19th 23 02:48 PM
How to put graphics on envelopes? Steve Koenig Microsoft Word Help 21 April 29th 23 02:47 AM
Why can't I get Multiple instances of word? Laverne Microsoft Word Help 14 November 17th 06 01:35 PM
manipulating/cutting/pasting text out of a text box [email protected] Microsoft Word Help 10 July 9th 06 10:54 PM
Word applies direct format on File open Uriel Microsoft Word Help 16 November 27th 05 07:22 PM


All times are GMT +1. The time now is 06:22 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"