web development India freelance website designer
In Microsoft Word 2000, when you use the Page X of Y Auto Text it appears to work correctly on screen but when you try
to print it does not have the correct amount of pages. There is a fix for this bug:


Insert the Page X of Y auto text and highlight Y part.
Now right-click it and select 'Toggle Field Codes'
Replace the Field with {DOCPROPERTY "Pages" \* MERGEFORMAT}

Now when you print you should see the correct page numbers.

The Visual Basic macro code for this is:

Sub PageXofY()
'
' PageXofY Macro
' Macro recorded 10/05/2001 by Ricky Bull
'
NormalTemplate.AutoTextEntries("Page X of Y").Insert Where:=Selection. _
Range
Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Fields.ToggleShowCodes
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.MoveLeft Unit:=wdCharacter, Count:=2
Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.TypeText Text:="DOCPROPERTY ""Pages"" \ * MERGEFORMAT"
Selection.Fields.Update

End Sub
Page X of Y Bug in Word 2000

1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700

Freelance ASP PHP web development | Web developer India Web development India| Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design