Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2018, 04:03 AM
Eric Tsang Eric Tsang is offline How to add Auto update  Total Page number Windows 7 32bit How to add Auto update  Total Page number Office 2000
Novice
How to add Auto update  Total Page number
 
Join Date: May 2016
Posts: 8
Eric Tsang is on a distinguished road
Default How to add Auto update Total Page number

Dear all

Is there any way i can insert a total page number

As now i know how to add the page number but i have to update it every time when i close the file.

Is there a way that it would update the same way when we add page or reduce page in the footer ??

Thanks
Reply With Quote
  #2  
Old 09-29-2018, 04:41 AM
Charles Kenyon Charles Kenyon is offline How to add Auto update  Total Page number Windows 10 How to add Auto update  Total Page number Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 6,386
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

You have your total page number in the form of a NUMPAGES field in the body of the document rather than the header or footer?
Pagination Fields
Reply With Quote
  #3  
Old 09-29-2018, 05:41 AM
Eric Tsang Eric Tsang is offline How to add Auto update  Total Page number Windows 7 32bit How to add Auto update  Total Page number Office 2000
Novice
How to add Auto update  Total Page number
 
Join Date: May 2016
Posts: 8
Eric Tsang is on a distinguished road
Default

Thanks a lot of the suggestion.

However, i want it to be automatically update as of when i add a page or reduce a page

Like the page number on the page. Now i need to update field of NumPage

Any idea ?

Eric
Reply With Quote
  #4  
Old 09-29-2018, 08:58 AM
jeffreybrown jeffreybrown is offline How to add Auto update  Total Page number Windows Vista How to add Auto update  Total Page number Office 2007
Expert
 
Join Date: Apr 2016
Posts: 607
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

That seems it would constitute and update every time you touch the document. In other words, Word would have to capture the fact you added a page or deleted a page.

The typical way would be to select Ctrl + A and then F9...

but is this is not what you want then you could do it through a macro.

Code:
Sub Test()
    ActiveDocument.Fields.Update
End Sub
I'm sure Charles can add some additional details to cover, but maybe this helps in some way.
Reply With Quote
  #5  
Old 09-29-2018, 10:41 AM
Charles Kenyon Charles Kenyon is offline How to add Auto update  Total Page number Windows 10 How to add Auto update  Total Page number Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 6,386
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

Eric, what I wrote was intended as a question. Please read it again.


The macro presented by Jeffrey will update fields in the document text story of the document. I still do not know if this is a field and if so which field and whether it is the header/footer or in the body of the document.

Last edited by Charles Kenyon; 09-29-2018 at 03:15 PM.
Reply With Quote
  #6  
Old 09-29-2018, 02:38 PM
macropod's Avatar
macropod macropod is offline How to add Auto update  Total Page number Windows 7 64bit How to add Auto update  Total Page number Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 20,040
macropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud of
Default

Quote:
Originally Posted by Eric Tsang View Post
Thanks a lot of the suggestion.

However, i want it to be automatically update as of when i add a page or reduce a page
A NUMPAGES field in the page header or footer updates automatically as pages are added/deleted; there is no need for a macro.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #7  
Old 09-30-2018, 09:21 AM
Eric Tsang Eric Tsang is offline How to add Auto update  Total Page number Windows 7 32bit How to add Auto update  Total Page number Office 2000
Novice
How to add Auto update  Total Page number
 
Join Date: May 2016
Posts: 8
Eric Tsang is on a distinguished road
Default

Thanks but it is not automatic update
I still have to üpdate field



Eric
Attached Files
File Type: docx Sample_1.docx (13.1 KB, 2 views)
Reply With Quote
  #8  
Old 09-30-2018, 12:31 PM
jeffreybrown jeffreybrown is offline How to add Auto update  Total Page number Windows Vista How to add Auto update  Total Page number Office 2007
Expert
 
Join Date: Apr 2016
Posts: 607
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

And it will not be automatic as your NUMPAGES is not with within the header or footer as directed.

Quote:
Originally Posted by macropod View Post
A NUMPAGES field in the page header or footer updates automatically as pages are added/deleted; there is no need for a macro.
Reply With Quote
  #9  
Old 09-30-2018, 02:30 PM
macropod's Avatar
macropod macropod is offline How to add Auto update  Total Page number Windows 7 64bit How to add Auto update  Total Page number Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 20,040
macropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud ofmacropod has much to be proud of
Default

Quote:
Originally Posted by Eric Tsang View Post
Thanks but it is not automatic update
I still have to üpdate field
Without wanting to place too fine a point on it, your NUMPAGES field is not in the page header or footer...
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add Auto update  Total Page number Page number total in footer with section breaks Bamboozled Word 4 06-12-2018 09:36 PM
How to add Auto update  Total Page number Formula for calculating total when number and letter in one cell Oleg Excel 5 02-22-2017 03:05 AM
How to add Auto update  Total Page number Total Page number incorrect in the first page footer mmathisekar Word 11 06-16-2016 06:00 AM
Showing page numer and total page count in TOC Ulodesk Word 5 02-12-2014 01:03 PM
Auto-Update Amended Page Numbers? herbertp Word 5 02-01-2013 02:20 AM


All times are GMT -7. The time now is 11:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft