You can use the PageCount property to determine the number of pages in a snapshot.
Setting
The PageCount property is a Long value representing the number of pages in a snapshot.
This property is available only by using Visual Basic and is read-only.
Remarks
If you try to determine the PageCount property while no valid snapshot file is open, an error occurs.