PageCount

This property sets or returns the page count of the currently displayed document.

Syntax

PageCount As Long