Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
I think you can only retrieve the total number of pages in a document with
the information funtion because there is only "wdNumberOfPagesInDocument".
But how to know the active pagenumber of a document with VBA?
Hi,
MsgBox Selection.Information(wdActiveEndPageNumber)
gives you the page number of the end of the selection.
Greetings from Bavaria, Germany
Helmut Weber
"red.sys" & chr$(64) & "t-online.de"
Word 97, XP, NT4.0, W98
I think you can only retrieve the total number of pages in a document with
the information funtion because there is only "wdNumberOfPagesInDocument".
But how to know the active pagenumber of a document with VBA?
Msgbox "The cursor is on page " &
Selection.Information(wdActiveEndPageNumber)
--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML http://www.multilinker.com
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.