How to set my 2003 WORD' page number by default

EESky
EESky used Ask the Experts™
on
Hi Experts,
I want to set my all WORD file page number be default. It means I just set up it once, and later when I open any WORD documents, it will show up the page number in foot in the document. Thank you.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
GrahamSkanRetired
Top Expert 2012

Commented:
You could add numbering to  your Normal template so that any new blank document will have that page numbering.

Otherwise you could use VBA to insert a page field. This macro should go in the ThisDocument module of the Normal template.
Private Sub Document_Open()
    Dim rng As Range
    Dim fld As Field
    
    Set rng = ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range
    For Each fld In rng.Fields
        If fld.Type = wdFieldPage Then
            Exit Sub
        End If
    Next fld
    rng.Collapse wdCollapseStart
    ActiveDocument.Fields.Add rng, wdFieldPage
End Sub

Open in new window

JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
Commented:
The Header Style and the Footer Style are quite different than the Normal Style. The 3 styles are separate and cannot be combined.

You can try setting up these three styles and then making a new Standard (to you) Document Template with standard header and footer (your style). That might work. Save your template (.DOT file) and use it instead of the standard template.

But the standard template is just the Normal Style and won't page number automatically.

... Thinkpads_User

Author

Commented:
Thanks for your fast reply. What i mean is that after i set up page number in the foot of the page, all my WORD documents, including OLD and new files, will show the page number automatically.
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
Commented:
No template or style with refresh your old documents. Once saved, that is what they are.

Make the .DOT Template as we suggested above. Then you can open an old file and apply the template. That should number it. Save it and go to the next. But it will not (cannot be) automatic.

... Thinkpads_User
GrahamSkanRetired
Top Expert 2012

Commented:
If you set up the page number in a document, and save it, it should always show thereafter, provided you are in a view that shows headers and footers.

Author

Commented:
Thank you! Can you show me the basic step to set up the template ?
GrahamSkanRetired
Top Expert 2012

Commented:
The page number is part of the document, so it will only show in the footer if the page field is there.

Remember that you can set the status bar at the bottom of the Word window to show the number of the currently visible page.
GrahamSkanRetired
Top Expert 2012
Commented:
The VBA macro will run automatically, when you open a document, so you won't have to intervene it for every document that you open.
Business Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
Commented:
Can you show me the basic step to set up the template ?

And if you want a specific template, just Save As Template (.DOT / .DOTX)

.... Thinkpads_User
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
@EESky - Thank you and I was happy to help alongside Graham.

... Thinkpads_User

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial