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 » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Insert section break



 
 
Thread Tools Display Modes
  #1  
Old September 13th, 2007, 06:32 AM posted to microsoft.public.word.formatting.longdocs
Bernie Dwyer
external usenet poster
 
Posts: 2
Default Insert section break

Hello! My wife is editing a 327-page book, and is rapidly learning about
some of Word's quirkier features :-)

This is Word 2000.

Is there a way to insert a "next page section break" (for chapter
breaks) without having the new section having the "same as previous"
button set (in header and footer), i.e. how to insert a section break
that isn't populated with the same headers and footers as the previous
section? I've done a quick search of this group, some of the other word
groups, and searched word.mvps.org, but no luck.

Is it possible to intercept the "insert break" function with a macro to
do what she wants? If so, has anyone else done it already?

Thanks

--

Bernie Dwyer
There are no 'z' in my address
  #2  
Old September 13th, 2007, 11:27 AM posted to microsoft.public.word.formatting.longdocs
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Insert section break

Running a macro with the following code when the selection is at the point
where you want to insert the section break will insert the break and unlink
the headers and footers from those in the previous section. Note, the
headers and footers will still contain the same text as those in the
previous section, but it can be edited/deleted without affecting that in the
previous section.

Dim i As Long
Selection.InsertBreak Type:=wdSectionBreakNextPage
With ActiveDocument
i = .Sections.Count
With .Sections(i)
.Headers(wdHeaderFooterFirstPage).LinkToPrevious = False
.Headers(wdHeaderFooterPrimary).LinkToPrevious = False
.Footers(wdHeaderFooterFirstPage).LinkToPrevious = False
.Footers(wdHeaderFooterPrimary).LinkToPrevious = False
End With
End With

If you want the new headers and footers to be blank, use

Dim i As Long
Selection.InsertBreak Type:=wdSectionBreakNextPage
With ActiveDocument
i = .Sections.Count
With .Sections(i)
.Headers(wdHeaderFooterFirstPage).LinkToPrevious = False
.Headers(wdHeaderFooterFirstPage).Range.Delete
.Headers(wdHeaderFooterPrimary).LinkToPrevious = False
.Headers(wdHeaderFooterPrimary).Range.Delete
.Footers(wdHeaderFooterFirstPage).LinkToPrevious = False
.Footers(wdHeaderFooterFirstPage).Range.Delete
.Footers(wdHeaderFooterPrimary).LinkToPrevious = False
.Footers(wdHeaderFooterPrimary).Range.Delete
End With
End With



--
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

"Bernie Dwyer" wrote in message
...
Hello! My wife is editing a 327-page book, and is rapidly learning about
some of Word's quirkier features :-)

This is Word 2000.

Is there a way to insert a "next page section break" (for chapter
breaks) without having the new section having the "same as previous"
button set (in header and footer), i.e. how to insert a section break
that isn't populated with the same headers and footers as the previous
section? I've done a quick search of this group, some of the other word
groups, and searched word.mvps.org, but no luck.

Is it possible to intercept the "insert break" function with a macro to
do what she wants? If so, has anyone else done it already?

Thanks

--

Bernie Dwyer
There are no 'z' in my address



  #3  
Old September 14th, 2007, 12:56 AM posted to microsoft.public.word.formatting.longdocs
Bernie Dwyer
external usenet poster
 
Posts: 2
Default Insert section break

Doug Robbins - Word MVP wrote:

Running a macro with the following code when the selection is at the point
where you want to insert the section break will insert the break and unlink
the headers and footers from those in the previous section. Note, the
headers and footers will still contain the same text as those in the
previous section, but it can be edited/deleted without affecting that in the
previous section.


macro snipped

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


Great, thanks very much.

--

Bernie Dwyer
There are no 'z' in my address
  #4  
Old September 25th, 2007, 09:06 AM posted to microsoft.public.word.formatting.longdocs
DeanH
external usenet poster
 
Posts: 1,783
Default Insert section break

If the changes to the header/footer are the text that is reflected in the new
section, i.e. the section/chapter title, then try using StyleRef. You will
not need section breaks, as the header/footer will auto change as the
section/chapter text changes, very useful.
Hope this useful.
DeanH

"Bernie Dwyer" wrote:

Hello! My wife is editing a 327-page book, and is rapidly learning about
some of Word's quirkier features :-)

This is Word 2000.

Is there a way to insert a "next page section break" (for chapter
breaks) without having the new section having the "same as previous"
button set (in header and footer), i.e. how to insert a section break
that isn't populated with the same headers and footers as the previous
section? I've done a quick search of this group, some of the other word
groups, and searched word.mvps.org, but no luck.

Is it possible to intercept the "insert break" function with a macro to
do what she wants? If so, has anyone else done it already?

Thanks

--

Bernie Dwyer
There are no 'z' in my address

 




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 12:43 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.