Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2007

Tip: Looking for answers? Try searching our database.

Autotext page numbering won't update!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jlee@valleywater.org - 19 Oct 2007 20:58 GMT
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
Russ - 20 Oct 2007 08:51 GMT
Joy,
This is what Jay said in other message thread you had.
++++++++++Quote
It sounds like you've hit the "Page X of Y" bug. Read
http://www.word.mvps.org/FAQs/AppErrors/PageXofY.htm for possible solutions.

Signature

Regards,
Jay Freedman
++++++++++++UnQuote

> I used autotexts for automatic page numbering that appear outside the
> header/footer area:
[quoted text clipped - 9 lines]
>
> Joy

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID

Tony Jollans - 21 Oct 2007 10:16 GMT
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.

Signature

Enjoy,
Tony

>I used autotexts for automatic page numbering that appear outside the
> header/footer area:
[quoted text clipped - 9 lines]
>
> Joy
jlee@valleywater.org - 22 Oct 2007 22:48 GMT
On Oct 21, 2:16 am, "Tony Jollans" <My forename at my surname dot com>
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
[quoted text clipped - 23 lines]
>
> - 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
Russ - 23 Oct 2007 06:29 GMT
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

> On Oct 21, 2:16 am, "Tony Jollans" <My forename at my surname dot com>
> wrote:
[quoted text clipped - 40 lines]
>
> Joy

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.