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 / Numbering / September 2003

Tip: Looking for answers? Try searching our database.

Page Number and Field Codes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bruce - 20 Sep 2003 17:20 GMT
Many times my documents will start at a number other than
1.  I would like the total pages or "{NUMPAGES}" to update
appropriately.  Words "Help" section stated the following:

If the page numbering starts on a page number other than
1, use an = (Formula) field to compute the total page
number count. To determine the starting page number for
the active document, (StartingNumber), click Page Numbers
on the Insert menu, and then click Format.

Page { PAGE } of { = (StartingNumber - 1) + { NUMPAGES } }

But when I try this I get the following error:

"!Undefined Bookmark, STARTINGN"

I know I'm probably forgetting something very basic but
this is driving me crazy.

Thanks in advance.
Suzanne S. Barnhill - 20 Sep 2003 22:26 GMT
You have to type in the actual starting page number *or* you have to place a
bookmark named "StartingNumber" on the first page of the document.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Signature

Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


> Many times my documents will start at a number other than
> 1.  I would like the total pages or "{NUMPAGES}" to update
[quoted text clipped - 16 lines]
>
> Thanks in advance.
Bruce - 21 Sep 2003 04:09 GMT
Suzanne,

Thanks for the reply but I'm not too sure what you mean by
this.  I'm trying to understand that if I use a bookmark
how will it update each page?  I thought the bookmark
would be static.  It must be mental block but I'm trying
to decipher how each page will be updated accordingly.  I
don't know if this helps but I used the Page x of y in the
header to automatically number the pages.  

Presently, I use vba to prompt for a starting page
number.  In a With End With section the following code is
used to grab the starting page number.  

.Sections(1).Headers
(wdHeaderFooterPrimary).PageNumbers.StartingNumber = Val
(frmHeader.txtStartingPageNo.Text)

The starting page number appears to work properly. Could I
use a variable or does it have to be a bookmark?  If so,
then how because I keep getting an syntax error.  If you
could give me an example I would appreciate it.  I'm sort
of a "visual" person.  Thanks again.

Bruce

>-----Original Message-----
>You have to type in the actual starting page number *or* you have to place a
[quoted text clipped - 31 lines]
>
>.
Suzanne S. Barnhill - 21 Sep 2003 15:12 GMT
The bookmark is only part of the calculation; you are adding the page number
of that bookmark to the NumPages field, which returns the number of pages in
the document, without reference to the starting page number. In order to
make it match the page number on the last page, you can either use a
calculated field (as you are doing), or you can put a bookmark on the last
page and include a cross-reference to the page number of that bookmark.
Alternatively, if your code were to write the starting page number to a
document property, then you could use a DocProperty field to include it in
your calculated field.

For more specific details, you might want to post in the
microsoft.public.word.vba.userforms NG.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Signature

Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


> Suzanne,
>
[quoted text clipped - 65 lines]
> >
> >.
 
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.