presence76
03-01-2006, 07:19 AM
I am writing a macro that reads through a folder of word documents (approximately 3000) and needs to determine which ones are 1 page, 2 pages, and 3 pages. Then, these are seperated to associated folders. I tried to use
TotPages = ThisDocument.ComputeStatistics(wdStatisticPages)
But it gives me a value of 1 on the 2 pages.
Is there another variable that tells me the total pages in the current document?
Thanks in advance.
TotPages = ThisDocument.ComputeStatistics(wdStatisticPages)
But it gives me a value of 1 on the 2 pages.
Is there another variable that tells me the total pages in the current document?
Thanks in advance.