Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2016, 07:37 AM
Tonks811 Tonks811 is offline Removing Sections from headers and footers Windows 10 Removing Sections from headers and footers Office 2013
Novice
Removing Sections from headers and footers
 
Join Date: Jan 2016
Posts: 1
Tonks811 is on a distinguished road
Default Removing Sections from headers and footers

I have somehow created sections on a long document so that when i put automatic page numbers down they go all to pot ie same numbers or resetting the start point. Can someone help me remove the sections as they are not needed.

Last edited by Charles Kenyon; 01-17-2016 at 09:27 AM. Reason: Mark as solved
Reply With Quote
  #2  
Old 01-16-2016, 10:42 AM
Charles Kenyon Charles Kenyon is offline Removing Sections from headers and footers Windows 8 Removing Sections from headers and footers Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

They may or may not be needed. Running the following macro will make the page numbering continuous.

Code:
Sub ContinuousPageNumbers()
' Jay Freedman
' http://answers.microsoft.com/en-us/office/forum/office_2007-word/page-numbers-are-all-fouled-up-in-my-large/d188687e-9663-43e0-a450-1dbadc47f09f#last
    Dim secNum As Long
    With ActiveDocument
        For secNum = 2 To .Sections.Count
            .Sections(secNum).Headers(wdHeaderFooterPrimary) _
                 .PageNumbers.RestartNumberingAtSection = False
        Next
    End With
End Sub
See Installing Macros if you need help on how to use the macro.

Section changes can be for columns, page orientation, or margins changes. Sections / Headers and Footers in Microsoft Word 2007-2013
Reply With Quote
  #3  
Old 01-16-2016, 10:30 PM
gmayor's Avatar
gmayor gmayor is offline Removing Sections from headers and footers Windows 10 Removing Sections from headers and footers Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Note that headers and footers don't have sections. Sections have headers and footers.
Using the replace function (CTRL+H) to replace ^b with nothing will remove all the section breaks, but try it on a copy of your document or you could quickly discover why the section breaks were included.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Sections from headers and footers headers/footers scot Word 3 05-22-2015 09:45 AM
Removing Sections from headers and footers Headers and Footers Kingsmoss Word 3 04-28-2014 02:43 PM
Removing Sections from headers and footers Odd and Even Headers/Footers sarineochaos Word 1 02-04-2014 06:15 PM
Removing Sections from headers and footers Headers and Footers teza2k06 Word 1 05-14-2013 11:07 AM
Headers and Footers OverAchiever13 Word 1 05-27-2010 01:30 PM

Other Forums: Access Forums

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


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