PageNumber Function [Visio 2003 SDK Documentation]

Returns the number of the page that contains the shape.

PageNumber()

Remarks

If the current page is a background page (unnumbered), or if an error occurs, the PageNumber function returns zero.