PageSetup.PageSize property (Publisher)
Gets or sets the blank page size for the current publication. Read/write.
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 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 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.
Public Sub PageSize_Example()
ThisDocument.PageSetup.PageSize = ThisDocument.PageSetup.AvailablePageSizes.Item(130)
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.