![]() |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
Hi -
I've searched various forums for the following, but can't find exactly what I need (or else can't recognize it if it exists). I have a document that with a section break at the end of each page that I need to have numbered continuously across all sections. I also need the numbering to start with '0.' Somewhere I found a macro that numbers the document continuously (shown below), but it starts with 1, not 0. Could anyone tell me what needs to be added or changed to have it start with 0? TIA!! (obviously, I do not know anything about VBA, other than to know it exists and can be magic ![]() Here's the existing code (which someone else wrote): Sub ContinuePageNumbers() Dim sec As Section On Error GoTo Done Application.ScreenUpdating = False With ActiveDocument.ActiveWindow.View .SeekView = wdSeekPrimaryFooter End With For Each sec In ActiveDocument.Sections sec.Footers(wdHeaderFooterPrimary).Range.Select Selection.HeaderFooter.PageNumbers.RestartNumberin gAtSection = False DoEvents Next sec With ActiveDocument.ActiveWindow.View .SeekView = wdSeekMainDocument End With Selection.HomeKey Done: Application.ScreenUpdating = True End Sub Thanks again. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page numbers not following. All sections continuous, link to previous selected. | ClaireP | Word | 4 | 07-07-2020 08:12 AM |
Starting Sections of a paper at the top of a new page | Lou_Reed | Word | 3 | 12-11-2018 01:55 PM |
![]() |
onemorecupofcoffee | Word | 18 | 09-04-2013 04:31 PM |
![]() |
Eva | Word | 1 | 11-05-2011 01:20 PM |
Continuous page numbering in a merged document | dkeinath | Mail Merge | 0 | 07-30-2010 09:30 AM |