word count on page
August 3, 2005 7:08 AM
Subscribe
So I'm trying to write a Word macro to count how many words there are on the current page of the document. It's not going well.
It's already taken me quite a while to figure out that the code to get the current page number is Selection.Information(wdActiveEndPageNumber) -- I mean, how intuitive is that? From there it seems that I'd need to use Selection.MoveUp and Selection.MoveDown in a loop and make it stop and reverse when it finds page breaks, but I'm at a loss as to how to do it.
posted by reklaw to computers & internet (7 comments total)
Maybe I'm missing something.
posted by oddman at 7:19 AM on August 3, 2005