Hi William,
If you know the name of the bookmark, this expression gives the page number
(the underscore at the end of the first line means that the expression
continues on the second line):
ActiveDocument.Bookmarks("bkm").Range _
.Information(wdActiveEndPageNumber)
If the starting page number of the document or section has been changed from
1, then the adjusted page number (i.e., the one that would appear if you put
a {PAGE} field there) is
ActiveDocument.Bookmarks("bkm").Range _
.Information(wdActiveEndAdjustedPageNumber)
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
William wrote:
> hi,
>
> in word vba for xp, how could i find out the page number of a
> bookmark?
>
> thank you,
>
> william.