Find out page number for bookmark

T

Ted Callander

Is it possible to find out on which page a bookmark, range or heading exists
- programatically? I'm trying to create a very simple TOC in an autogenerated
document.
Also, is it best to use VBA for this or is there a simpler solution?

(I'm really using PIA for Word 2003 but there was no discussion group for
that.)

_______________________
Ted Callander
 
D

Doug Robbins

MsgBox
ActiveDocument.Bookmarks("Text").Range.Information(wdActiveEndPageNumber)


--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 
Top