Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
68 lines (38 loc) · 1.39 KB

master-background-property-powerpoint.md

File metadata and controls

68 lines (38 loc) · 1.39 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
Master.Background Property (PowerPoint)
vbapp10.chm533006
vbapp10.chm533006
powerpoint
PowerPoint.Master.Background
94b07efa-4e33-ac2c-c466-ff38499f81c4
06/08/2017

Master.Background Property (PowerPoint)

Returns a ShapeRange object that represents the slide background.

Syntax

expression. Background

expression A variable that represents a Master object.

Return Value

ShapeRange

Remarks

If you use the Background property to set the background for an individual slide without changing the slide master, the FollowMasterBackground property for that slide must be set to False.

Example

This example sets the background of the slide master in the active presentation to a preset shade.

ActivePresentation.SlideMaster.Background.Fill.PresetGradient _
    Style:=msoGradientHorizontal, Variant:=1, _
    PresetGradientType:=msoGradientLateSunset

This example sets the background of slide one in the active presentation to a preset shade.

With ActivePresentation.Slides(1)
    .FollowMasterBackground = False
    .Background.Fill.PresetGradient Style:=msoGradientHorizontal, _
        Variant:=1, PresetGradientType:=msoGradientLateSunset
End With

See also

Concepts

Master Object