Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-13-2021, 03:01 PM
ukusprof ukusprof is offline Need help with simple (I hope) edit for continuous page numbering across sections, starting with 0 Mac OS X Need help with simple (I hope) edit for continuous page numbering across sections, starting with 0 Office 2016 for Mac
Novice
Need help with simple (I hope) edit for continuous page numbering across sections, starting with 0
 
Join Date: Sep 2021
Posts: 6
ukusprof is on a distinguished road
Default Need help with simple (I hope) edit for continuous page numbering across sections, starting with 0

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.
Reply With Quote
 



Similar Threads
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
Need help with simple (I hope) edit for continuous page numbering across sections, starting with 0 begin each section with page 1 in header PLUS continuous page numbering in footer onemorecupofcoffee Word 18 09-04-2013 04:31 PM
Need help with simple (I hope) edit for continuous page numbering across sections, starting with 0 Sections starting on even page 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

Other Forums: Access Forums

All times are GMT -7. The time now is 10:37 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