I have been sweating over this for the last 2 days, and if someone could help, I would be oh so grateful.
My problem seems really quite simple. All I want to do is return the current page number on an MS Word document programmatically.
I have a large 400 page document and all I want to do is run a small procedure to move between headings and return the page number:
*Some code to return the current page number*
Selection.GoTo What:=wdGoToHeading, which:=wdGoToNext
*Some code to return this page number*
This should in theory give two integers which I use to print the pages between the two headings.
If anyone could help, it really would be great.
Thank you so much.