A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Header / Style Ref / Page #



 
 
Thread Tools Display Modes
  #1  
Old April 11th, 2009, 01:19 AM posted to microsoft.public.word.formatting.longdocs
Fishy
external usenet poster
 
Posts: 10
Default Header / Style Ref / Page #

I have a looooooong document -- several volumes. I use Style Ref in the Header to pick up
Heading Style 4, which is the section number and title for each topic throughout the
document. Some of these section topics are contained in only one page; others span
several pages. I want to show a page number in the header and I want the numbering to
restart with each section heading. To achieve this:

Sec. 4.08 -- Offer Defined p. 4.08-1
p. 4.08-2
p. 4.08-3 ... etc.



Can somebody help?

  #2  
Old April 11th, 2009, 10:48 PM posted to microsoft.public.word.formatting.longdocs
Doug Robbins - Word MVP on news.microsoft.com
external usenet poster
 
Posts: 409
Default Header / Style Ref / Page #

In the Format Page Number dialog, set the numbering for each Section to
start at 1

To do this to every Section in your loooooong document, use a macro
containing the following code:

Dim i As Long, j As Long
With ActiveDocument
For i = 1 To .Sections.Count
With .Sections(i)
For j = 1 To .Headers.Count
.Headers(j).PageNumbers.StartingNumber = 1
Next j
End With
Next i
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Fishy" wrote in message
...
I have a looooooong document -- several volumes. I use Style Ref in the
Header to pick up
Heading Style 4, which is the section number and title for each topic
throughout the
document. Some of these section topics are contained in only one page;
others span
several pages. I want to show a page number in the header and I want the
numbering to
restart with each section heading. To achieve this:

Sec. 4.08 -- Offer Defined p. 4.08-1
p. 4.08-2
p. 4.08-3 ... etc.



Can somebody help?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.