Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-17-2024, 09:50 AM
johnbornsworth johnbornsworth is offline Pagnation with Columns Windows 11 Pagnation with Columns Office 2021
Novice
Pagnation with Columns
 
Join Date: Mar 2024
Posts: 3
johnbornsworth is on a distinguished road
Default

Quote:
Originally Posted by Italophile View Post
It is possible that one of the sections is corrupt.

If that is not the case then you should be able to set the starting number by simply looping through the sections. For example:

Code:
Sub SetStartingPageNumber()
    Dim secIndex As Long
    
    For secIndex = 2 To ActiveDocument.Sections.count
        ActiveDocument.Sections(secIndex).Headers(wdHeaderFooterPrimary).PageNumbers.RestartNumberingAtSection = False
    Next secIndex
End Sub

Will that work is the sections are many per page? Due to the columns each visible page may span 2-4 sections. So counting the sections in sequence will result in much higher page numbers that actual pages.

Also maybe the sections are corrupt? Is there a way to verify that?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to delete selected columns and re arrange columns in order RAJESH@1960 Excel Programming 1 04-14-2023 07:58 AM
Pagnation with Columns How to create 3 Columns from Data in 1 Column using every 3 Cells to create the 3 Columns? leeuniverse Excel 2 03-30-2023 11:00 PM
Split selected columns, or all columns exept for Column1 Cendrinne Word VBA 2 09-20-2019 09:14 PM
Insert 8 columns into 3 columns BendixB Excel Programming 2 08-08-2018 12:39 PM
Pagnation with Columns How to compare 2 columns with other two columns in EXECL 2007? Learner7 Excel 5 06-12-2010 09:54 AM

Other Forums: Access Forums

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