Share via


PageSetup.PageSize Property

Publisher Developer Reference

Gets or sets the blank page size for the current publication. Read/write.

Version Information
 Version Added:  Publisher 2007

Syntax

expression.PageSize

expression   A variable that represents a PageSetup object.

Return Value
PageSize

Remarks

The blank page size represented by the PageSize object returned or set by the PageSize property corresponds to one of the icons displayed under Blank Page Sizes in the Page Setup dialog box in the Microsoft Office Publisher user interface.

Example

The following Microsoft Visual Basic for Applications (VBA) macro shows how to set the blank page size for the current publication. The example sets the blank page size to "Index Card," which is the blank page size at index number 130 in the AvailablePageSizes collection. See the AvailablePageSizes property topic for an example of how to create a text file that contains the list of all page sizes available in the current publication and their corresponding index numbers.

Visual Basic for Applications
  Public Sub PageSize_Example()
ThisDocument.PageSetup.PageSize = ThisDocument.PageSetup.AvailablePageSizes.Item(130)
    

End Sub

See Also