Autotext page numbering won't update!

J

jlee

I used autotexts for automatic page numbering that appear outside the
header/footer area:

{ page} of { numpages}

And it worked . . . initially. However, the "numpages" field won't
update even though more pages added. I tried switching the view mode,
closing and re-opening the file, etc., but still it won't update. Did
I miss any step, or is there any way to fix this problem?

PLEASE HELP!

Joy
 
T

Tony Jollans

Outside of the header and footer it won't automatically update as you add
pages. You must explicitly update it to see the correct value on screen. It
will, however update itself if you Print (or Print Preview) it.
 
J

jlee

Outside of the header and footer it won't automatically update as you add
pages. You must explicitly update it to see the correct value on screen. It
will, however update itself if you Print (or Print Preview) it.

--
Enjoy,
Tony










- Show quoted text -

Thank you for your response!

You wrote:
Outside of the header and footer it won't automatically update as you
add
pages. You must explicitly update it to see the correct value on
screen. It
will, however update itself if you Print (or Print Preview) it.

However, my customer is requesting to make that happen automatically,
without switching views/or having to print. Is that possible by
macros/Visual Basic programming?

Joy
 
R

Russ

Joy,
In response to this subroutine, Jean-Guy offered the link below for more
information.

Sub UpdateAllFields()
Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
If oStory.StoryType <> wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.Fields.Update
Wend
End If
Next oStory
Set oStory = Nothing
End Sub

--------Quote
If the first story of a the header/footer story range is totally blank, e.g.
the main header of the first section has never been set, this code will not
update the headers/footers in the following sections.

For a workaround, See
http://word.mvps.org/faqs/customization/ReplaceAnywhere.htm

Jean-Guy Marcil - Word MVP
---------UnQuote
 

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