I want to set the format of the centerfooter from "Page 0001" to "Page xxxx" in EXCEL2000.
And I use the following codes.
With ActiveSheet.PageSetup
.CenterFooter = Right$("000" & "&P", 4)
End With
But the result is not good. Before ten pages the centerfooter were "00x" ("x" means "1" to "9"). From 10 to 99 pages the centerfooter were "00xx". But after 100 pages, the centerfooter were "00xxx".
Any one know the way to get the good result. Thanks in advance.
And I use the following codes.
With ActiveSheet.PageSetup
.CenterFooter = Right$("000" & "&P", 4)
End With
But the result is not good. Before ten pages the centerfooter were "00x" ("x" means "1" to "9"). From 10 to 99 pages the centerfooter were "00xx". But after 100 pages, the centerfooter were "00xxx".
Any one know the way to get the good result. Thanks in advance.