Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have a 400 page document with many sections. When I add page numbers, they reset after each section. I have to manually go through each section and select to continue page numbers from previous section. Is there a way to automate this using a macro?
Thanks |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
The following macro should do the trick:
Sub ResetPageNumberinAllSections() Dim s As Section For Each s In ActiveDocument.Sections s.Headers(wdHeaderFooterPrimary) _ .PageNumbers.RestartNumberingAtSection = False Next s End Sub -- Stefan Blom Microsoft Word MVP "jezra85" wrote in message ... I have a 400 page document with many sections. When I add page numbers, they reset after each section. I have to manually go through each section and select to continue page numbers from previous section. Is there a way to automate this using a macro? Thanks -- jezra85 |
#3
![]() |
|||
|
|||
![]()
Thanks for your help. It's very useful
Quote:
|
#4
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
I'm glad I could help!
-- Stefan Blom Microsoft Word MVP On 2012-04-27 03:41, jezra85 wrote: Thanks for your help. It's very useful 'Stefan Blom[_3_ Wrote: ;492357']The following macro should do the trick: Sub ResetPageNumberinAllSections() Dim s As Section For Each s In ActiveDocument.Sections s.Headers(wdHeaderFooterPrimary) _ .PageNumbers.RestartNumberingAtSection = False Next s End Sub -- Stefan Blom Microsoft Word MVP "jezra85" wrote in message ...- I have a 400 page document with many sections. When I add page numbers, they reset after each section. I have to manually go through each section and select to continue page numbers from previous section. Is there a way to automate this using a macro? Thanks -- jezra85 - |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Page numbers following column change | Page Layout | |||
How do I create a macro to delete hard-coded page numbers? | Microsoft Word Help | |||
TOC page numbers change. | Microsoft Word Help | |||
How do I change the page numbers in a 121 page document | Microsoft Word Help | |||
macro for updating TOC page numbers | Microsoft Word Help |