Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Jason Koelewyn Jason Koelewyn is offline
external usenet poster
 
Posts: 1
Default How to change the starting Page Number in Code

I am trying to set the Page number using code. Does anyone know how to set
that value?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default How to change the starting Page Number in Code

The starting page number is set for each section. For example, the
following example sets the starting page number to 22 for the first
section of the active document:

With ActiveDocument.Sections(1) _
.Headers(wdHeaderFooterPrimary).PageNumbers
.RestartNumberingAtSection = True
.StartingNumber = 22 'Specify the desired number here
End With

--
Stefan Blom
Microsoft Word MVP


"Jason Koelewyn" wrote in message
...
I am trying to set the Page number using code. Does anyone know how
to set that value?





Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
First Appendix chapter show page number starting with B bbdpres Microsoft Word Help 2 June 30th 06 12:27 AM
How do I view my footer page number without the field code? carol Microsoft Word Help 1 June 8th 06 07:19 PM
starting at page 4 but using the number 1 wingeddove2003 Microsoft Word Help 3 March 10th 06 09:41 AM
How do I page number starting on the 4th page Ashley Microsoft Word Help 1 April 20th 05 04:44 PM
How do I number the middle section of a document starting as page. Jane H. Microsoft Word Help 4 January 12th 05 03:59 PM


All times are GMT +1. The time now is 08:19 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"