![]() |
|
#1
|
|||
|
|||
![]()
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 ! |
#2
|
|||
|
|||
![]()
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 |
#3
|
|||
|
|||
![]()
Got it, Thanks !
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kaurp | Word VBA | 5 | 11-02-2017 04:36 AM |
![]() |
c_gallagher25 | Word | 1 | 02-12-2014 04:27 PM |
![]() |
onemorecupofcoffee | Word | 18 | 09-04-2013 04:31 PM |
![]() |
pamm13 | Word | 1 | 06-22-2011 11:10 AM |
Section breaks, footers and page numbering | yeswab | Word | 0 | 03-19-2009 06:37 AM |