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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top