|Publisher Developer Reference|
Version Added: Publisher 2007
The page sizes represented by the PageSizes collection correspond to the icons displayed under Blank Page Sizes in the Page Setup dialog box in the Publisher user interface.
The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the PageSizes collection to get all the page sizes available in the current document and print the list in the Immediate window.
|Visual Basic for Applications|