A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Page Breaks



 
 
Thread Tools Display Modes
  #1  
Old December 29th, 2009, 06:40 PM posted to microsoft.public.word.pagelayout
Paula S
external usenet poster
 
Posts: 1
Default Page Breaks

I want to set up the body of a novel for auto page breaks after 250 words are
typed. Is this possible? I am tired of having to go to word count and
manually enter a page break. Also, I want to avoid corrections to this during
editing!!!

HELP!!!
  #2  
Old December 29th, 2009, 10:56 PM posted to microsoft.public.word.pagelayout
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Page Breaks

You cannot do that.

However, if you just type text and then run a macro containing the
following code, it will insert a page break before each 251st Word

Dim myrange As Range
Selection.HomeKey wdStory
With Selection.Find
.ClearFormatting
.Execute FindText:="^b", Replace:=wdReplaceAll, ReplaceWith:="",
Forward:=True, MatchWildcards:=False
End With
Selection.HomeKey wdStory
Start:
Set myrange = Selection.Range
myrange.End = ActiveDocument.Range.End
If myrange.Words.Count 250 Then
myrange.Words(251).Select
Selection.Collapse wdCollapseStart
Selection.InsertBreak
GoTo Start
Else
Exit Sub
End If

Running it again will remove all of the page breaks and re-insert them again
in new positions if the text has changed.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Paula S" Paula wrote in message
...
I want to set up the body of a novel for auto page breaks after 250 words
are
typed. Is this possible? I am tired of having to go to word count and
manually enter a page break. Also, I want to avoid corrections to this
during
editing!!!

HELP!!!


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.