Hi!!!!!

I need count numbers of pages of a document.

How I get this number en VBA or VB.NET?

Thanks in advance?

How get page numbers??? by Greg

Greg
Fri Aug 06 09:57:59 CDT 2004

Hi,

Something like:

Sub PageCount()

NumPages = ActiveDocument.BuiltInDocumentProperties
(wdPropertyPages)
If NumPages > 1 Then
MsgBox "This document contains " & NumPages & " pages."
Else
MsgBox "This document contains " & NumPages & " page."
End If
End Sub


>-----Original Message-----
>Hi!!!!!
>
>I need count numbers of pages of a document.
>
>How I get this number en VBA or VB.NET?
>
>Thanks in advance?
>
>
>
>.
>