Pages Method

Description Returns the Page or PageRange object for the ImageFile object.

Syntax ImageFileObject.Pages(StartPage, EndPage)

Data TypeLong

Remarks If you specify one page number, this method returns a Page object. If you specify two page numbers, this method returns a PageRange object. To return a range of pages, specify the starting page number and ending page number. The first page number can be a variable, but the second page number must be a constant.

The Pages method uses these parameters:

Parameter Data Type Description
StartPage Long First page
EndPage Long Last page in the page range

Example This example returns a Page object and a PageRange object.

Dim Page As Object
Dim PageRange As Object
Set Page = Img.Pages(1)
Set PageRange = Img.Pages(1,3)