http://qs321.pair.com?node_id=334724


in reply to How to get MS-Word Page count and line count?

Hi Nicholas,
Acctually you should post the code showing were you are. It is hard to judge how much information you need based on your request.

What you probably need is pagenumbers.count To find this all I did was open Word. Hit Alt-F11 and this opens the editor for VBA. From there you can look in the object browser, or in the help. You may also want to look up the perldoc for Win32::OLE to get an example of how to make the connection.

If you post the code you have I'm sure you will find that everyone can get you to the point you want.