sections and pagecount

C

Chris

Hi,

I want to count pages in a specific section, and futhermore I want to go to
the last page in the same specific section. How do I do that?

Christina
 
D

Dave Lett

Hi Christina,

You can use something like the following:


ActiveDocument.Sections(2).Range.Select
Selection.MoveEnd Unit:=wdCharacter, Count:=-1
MsgBox Selection.Range.ComputeStatistics(wdStatisticPages)


HTH,
Dave
 

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