Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2013, 12:48 PM
Pat_Hodgson Pat_Hodgson is offline First section will not 'insert' blank page even though sectn 2 is 'odd' page break Windows 7 32bit First section will not 'insert' blank page even though sectn 2 is 'odd' page break Office 2007
Novice
First section will not 'insert' blank page even though sectn 2 is 'odd' page break
 
Join Date: Nov 2013
Posts: 4
Pat_Hodgson is on a distinguished road
Default


"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
Attached Images
File Type: jpg PP1.jpg (198.8 KB, 17 views)
File Type: jpg PP2.jpg (174.2 KB, 15 views)
File Type: jpg PP3.jpg (184.1 KB, 15 views)

Last edited by Pat_Hodgson; 12-01-2013 at 04:23 PM.
Reply With Quote
  #2  
Old 12-01-2013, 02:34 PM
jec1 jec1 is offline First section will not 'insert' blank page even though sectn 2 is 'odd' page break Windows 7 32bit First section will not 'insert' blank page even though sectn 2 is 'odd' page break Office 2013
Advanced Beginner
 
Join Date: Jan 2012
Posts: 84
jec1 is on a distinguished road
Default Odd Even Page Breaks

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
Regards
janinecrutch.com
Attached Images
File Type: png Section Start Odd Page.png (51.5 KB, 17 views)

Last edited by macropod; 12-01-2013 at 07:40 PM. Reason: Added code tags & formatting
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
First section will not 'insert' blank page even though sectn 2 is 'odd' page break Delete a page after Section Break Next Page Aston Word 9 04-27-2022 07:38 AM
First section will not 'insert' blank page even though sectn 2 is 'odd' page break Section Break (Next Page) replaces Section Break (Continuous) when deleted Carlabasson Word 2 03-25-2013 10:13 PM
First section will not 'insert' blank page even though sectn 2 is 'odd' page break Remove unwanted Page in a Section Break JacobReef Word 1 06-10-2012 07:04 AM
First section will not 'insert' blank page even though sectn 2 is 'odd' page break Help! Section Page Break Not Working - Need new Header and Footers dkgolfer16 Word 2 05-23-2012 11:02 AM
First section will not 'insert' blank page even though sectn 2 is 'odd' page break Page numbering starting on 2 after section break pamm13 Word 1 06-22-2011 11:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft