Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-05-2014, 12:04 PM
norwood norwood is offline Turning off page numbering in a new Section Windows Vista Turning off page numbering in a new Section Office 2000
Novice
Turning off page numbering in a new Section
 
Join Date: Sep 2013
Posts: 23
norwood is on a distinguished road
Default Turning off page numbering in a new Section

How do I turn off the page numbering in a new Section 2, while keeping the previous page numbering in the old Section 1 ?

(I search this forum to find the trick to create a new Section using :
Selection.InsertBreak Type:=wdSectionBreakNextPage

but I can't access the header in my Section 2 with :

With Selection.Sections(1).Headers(1).PageNumbers
.NumberStyle = wdPageNumberStyleArabic
:
:
End With
)

Thanks !
Reply With Quote
  #2  
Old 08-05-2014, 12:29 PM
Cosmo Cosmo is offline Turning off page numbering in a new Section Windows Vista Turning off page numbering in a new Section Office 2007
Competent Performer
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

You need to break the LinkToPrevious in your new section. Here's code I am using to do something similar (I am also clearing all text as well). Be sure to set the 'sec' variable to your newly created section to use this:

Code:
For i = 1 To sec.Headers.Count
' Unlink Header from previous
sec.Headers(i).LinkToPrevious = False
' Clear header text
sec.Headers(i).Range.Delete
Next i

For i = 1 To sec.Footers.Count
' Unlink Footer from Previous
sec.Footers(i).LinkToPrevious = False
' Clear footer text
sec.Footers(i).Range.Delete
Next I
Reply With Quote
  #3  
Old 08-05-2014, 01:52 PM
norwood norwood is offline Turning off page numbering in a new Section Windows Vista Turning off page numbering in a new Section Office 2000
Novice
Turning off page numbering in a new Section
 
Join Date: Sep 2013
Posts: 23
norwood is on a distinguished road
Default

Got it, Thanks !
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Turning off page numbering in a new Section Restarting page numbering only if Section begins with Heading 1 kaurp Word VBA 5 11-02-2017 04:36 AM
Turning off page numbering in a new Section Problem with "Next page" section break automatically turning into "Odd or Even Page" c_gallagher25 Word 1 02-12-2014 04:27 PM
Turning off page numbering in a new Section begin each section with page 1 in header PLUS continuous page numbering in footer onemorecupofcoffee Word 18 09-04-2013 04:31 PM
Turning off page numbering in a new Section Page numbering starting on 2 after section break pamm13 Word 1 06-22-2011 11:10 AM
Section breaks, footers and page numbering yeswab Word 0 03-19-2009 06:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:07 AM.


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