Class PageSetup (PowerPoint VBA)

Contains information about the page setup for slides, notes pages, handouts, and outlines in a presentation.

Set

To use a PageSetup class variable it first needs to be instantiated, for example

Dim psp as PageSetup
Set psp = ActivePresentation.PageSetup

PageSetup class variables can be set using the Presentation.PageSetup procedure.

FirstSlideNumber

Returns or sets the slide number for the first slide in the presentation.

The slide number is the actual number that will appear in the lower-right corner of the slide when you display slide numbers. This number is determined by the number (order) of the slide within the presentation (the SlideIndex property value) and the starting slide number for the presentation (the FirstSlideNumber property value). The slide number will always be equal to the starting slide number + the slide index number - 1. The SlideNumber property returns the slide number.

ActivePresentation.PageSetup.FirstSlideNumber = 1

NotesOrientation

Returns or sets the on-screen and printed orientation of notes pages, handouts, and outlines for the specified presentation.

The value returned by the NotesOrientation property can be one of these MsoOrientation constants.

ActivePresentation.PageSetup.NotesOrientation = msoOrientationMixed

Parent

Returns the parent object for the specified object.

SlideHeight

Returns or sets the slide height, in points.

ActivePresentation.PageSetup.SlideHeight =  8.5 * 72

SlideOrientation

Returns or sets the on-screen and printed orientation of slides in the specified presentation.

The value of the SlideOrientation property can be one of these MsoOrientation constants.

ActivePresentation.PageSetup.SlideOrientation = msoOrientationMixed

SlideSize

Returns or sets the slide size for the specified presentation.

Possible Values are ppSlideSize35MM - 35MM, ppSlideSizeA3Paper - A3 Paper, ppSlideSizeA4Paper - A4 Paper, ppSlideSizeB4ISOPaper - B4 ISO Paper, ppSlideSizeB4JISPaper - B4 JIS Paper, ppSlideSizeB5ISOPaper - B5 ISO Paper, ppSlideSizeB5JISPaper - B5 JIS Paper, ppSlideSizeBanner - Banner, ppSlideSizeCustom - Custom, ppSlideSizeHagakiCard - Hagaki Card, ppSlideSizeLedgerPaper - Ledger Paper, ppSlideSizeLetterPaper - Letter Paper, ppSlideSizeOnScreen - On Screen, ppSlideSizeOnScreen16x10, ppSlideSizeOnScreen16x9, ppSlideSizeOverhead - Overhead.

The value of the SlideSize property can be one of these PpSlideSizeType constants.

ActivePresentation.PageSetup.SlideSize = ppSlideSize35MM

SlideWidth

Returns or sets the slide width, in points.

ActivePresentation.PageSetup.SlideWidth = 11 * 72