Class Master (PowerPoint VBA)

The class Master represents a slide master, title master, handout master, notes master, or design master.

The main procedure of class Master is Delete


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

Dim mst as Master
Set mst = ActivePresentation.SlideMaster

The following procedures can be used to set variables of type Master: Design.SlideMaster, Presentation.SlideMaster, Presentation.AddTitleMaster, Presentation.HandoutMaster, Presentation.NotesMaster, Presentation.TitleMaster, Slide.Master and SlideRange.Master


The following procedures in this class have been grouped together and are described on a separate theme page

Format with its procedures ApplyTheme, BackgroundStyle, ColorScheme, CustomLayouts, Height, TextStyles, Theme and Width


This is the main method of the Master class

Delete - Deletes the specified Master object.



Background returns a ShapeRange object that represents the slide background.

Dim sreBackground As ShapeRange
Set sreBackground = ActiveWindow.Selection.SlideRange(1).Background

CustomerData returns a CustomerData object.

Dim cdaCustomerData As CustomerData
Set cdaCustomerData = ActivePresentation.SlideMaster.CustomerData

Design returns a Design object representing a design.

Dim dsgDesign As Design
Set dsgDesign = ActiveWindow.Selection.SlideRange(1).Design

Guides returns a Guides collection that represents all of the drawing guides associated with the slide master, title master, handout master, notes master, or design master.

Dim gdsGuides As Guides
Set gdsGuides = ActivePresentation.SlideMaster.Guides

HeadersFooters returns a HeadersFooters collection that represents the header, footer, date and time, and slide number associated with the slide, slide master, or range of slides.

Dim hfsHeadersFooters As HeadersFooters
Set hfsHeadersFooters = ActiveWindow.Selection.SlideRange(1).HeadersFooters

Hyperlinks returns a Hyperlinks collection that represents all the hyperlinks on the specified slide.

Dim hypsHyperlinks As Hyperlinks
Set hypsHyperlinks = ActiveWindow.Selection.SlideRange(1).Hyperlinks

Name returns or sets the name of the specified object.

ActivePresentation.SlideMaster.Name =

Parent returns the parent object for the specified object.

Dim objParent As Object
Set objParent = ActiveWindow.Selection.SlideRange(1).Parent

Shapes returns a Shapes collection that represents all the elements that have been placed or inserted on the specified slide, slide master, or range of slides.

Dim shpsShapes As Shapes
Set shpsShapes = ActiveWindow.Selection.SlideRange(1).Shapes

SlideShowTransition returns a SlideShowTransition object that represents the special effects for the specified slide transition.

Dim sstSlideShowTransition As SlideShowTransition
Set sstSlideShowTransition = ActiveWindow.Selection.SlideRange(1).SlideShowTransition

TimeLine returns a TimeLine object that represents the animation timeline for the slide.

Dim tleTimeLine As TimeLine
Set tleTimeLine = ActiveWindow.Selection.SlideRange(1).TimeLine