![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
"in print preview" I know there are no 'real' blank pages inserted into the actual document... PP1 Print preview of section one (first two pages) and section two (next two pages) etc PP2 Print preview - note the virtual 'blank' page inserted due to section two having had more text input causing it to run to 3 pages in length. PP3 Print preview - no 'blank' added when section one has additional text added to it; which buggers up the duplex printing! Here's a slimmed down copy, the full version has 12 sections, of the doc causing me all this grief! Thanks Last edited by Pat_Hodgson; 12-01-2013 at 04:23 PM. |
|
#2
|
|||
|
|||
|
If you want your new page to start on the next ODD page break you have to specify that in your layout
Your page layout is incorrect. Try the attached. Even better run this macro: If desired, you can also create a macro that will step through the document, look at each section, decide how many pages are in the section, and then add a page break at the end of the section, if necessary. The following macro does this very task: Code:
Sub CheckSecLen()
Dim iSec As Integer
Dim oRng As Range
Dim iValue As Integer
With ActiveDocument
' go through each section (except for the last one)
For iSec = 1 To .Sections.Count - 1
' create a range object at the start of the section
Set oRng = .Sections(iSec).Range
oRng.Collapse wdCollapseStart
' insert a sectionpages field
.Fields.Add Range:=oRng, Type:=wdFieldSectionPages
' divide the sectionpages field by 2
' if it gives a zero as the remainder, then
' you have an even number of pages in the section,
' which is what you want with an odd section page break
If (.Sections(iSec).Range.Fields(1).Result Mod 2) <> 0 Then
' if you have an odd number of pages, then insert
' a page break before the section's section break
Set oRng = .Sections(iSec).Range
With oRng
.Collapse Direction:=wdCollapseEnd
.MoveEnd unit:=wdCharacter, Count:=-1
.InsertBreak Type:=wdPageBreak
End With
End If
' remove the sectionpages field that was added
.Sections(iSec).Range.Fields(1).Delete
Next iSec
End With
End Sub
janinecrutch.com Last edited by macropod; 12-01-2013 at 07:40 PM. Reason: Added code tags & formatting |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Delete a page after Section Break Next Page
|
Aston | Word | 9 | 04-27-2022 07:38 AM |
Section Break (Next Page) replaces Section Break (Continuous) when deleted
|
Carlabasson | Word | 2 | 03-25-2013 10:13 PM |
Remove unwanted Page in a Section Break
|
JacobReef | Word | 1 | 06-10-2012 07:04 AM |
Help! Section Page Break Not Working - Need new Header and Footers
|
dkgolfer16 | Word | 2 | 05-23-2012 11:02 AM |
Page numbering starting on 2 after section break
|
pamm13 | Word | 1 | 06-22-2011 11:10 AM |