Force numbering to restart each time...

C

Claudine

Hi everyone,

I have a template that I've created for my team. We have
sections of the document added by a series of macros
which insert autotext entries containing preformated
text/tables. If I add sections, the numbering in the new
section continues rather than restarts. Is there a way I
can force each section to restart at 1, versus making the
user manually do it?

Thanks in advance,

Claudine
 
J

Jay Freedman

Hi Claudine,

This example is adapted from the VBA help topic on the
RestartNumberingAtSection property:

Dim s As Section
For Each s In ActiveDocument.Sections
With s.Headers(wdHeaderFooterPrimary).PageNumbers
.RestartNumberingAtSection = True
.StartingNumber = 1
End With
Next s

The odd part is that you don't have to have any actual page number in
any of the headers or footers for this to work.

I can hear the next question coming: "How on earth can you find
something buried like that?" The easiest way is to open the Object
Browser in the VBA editor and search for "restart". When you see
RestartNumberingAtSection, select it and click the help button.
 
C

Claudine Jalajas

Hi Jay,

Thanks for the response. My numbering is not for the
pages though. It's for numbered lists.

Claudine
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top