Class PageSetup (PowerPoint VBA)

Contains information about the page setup for slides, notes pages, handouts, and outlines in a presentation. To use a PageSetup class variable it first needs to be instantiated, for example


Dim psp as PageSetup
Set psp = ActivePresentation.PageSetup

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

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. Here you can find possible values for PpSlideSizeType.

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