Skip to content

Latest commit

 

History

History
56 lines (31 loc) · 1.25 KB

PowerPoint.Presentation.DefaultShape.md

File metadata and controls

56 lines (31 loc) · 1.25 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Presentation.DefaultShape property (PowerPoint)
vbapp10.chm583019
vbapp10.chm583019
PowerPoint.Presentation.DefaultShape
318ec04a-8b30-29b3-c8a6-732564efd7a8
06/08/2017
medium

Presentation.DefaultShape property (PowerPoint)

Returns a Shape object that represents the default shape for the presentation. Read-only.

Syntax

expression. DefaultShape

expression A variable that represents a Presentation object.

Return value

Shape

Example

This example adds a shape to slide one in the active presentation, sets the default fill color to red for shapes in the presentation, and then adds another shape. This second shape will automatically have the new default fill color applied to it.

With Application.ActivePresentation

    Set sld1Shapes = .Slides(1).Shapes

    sld1Shapes.AddShape msoShape16pointStar, 20, 20, 100, 100

    .DefaultShape.Fill.ForeColor.RGB = RGB(255, 0, 0)

    sld1Shapes.AddShape msoShape16pointStar, 150, 20, 100, 100

End With

See also

Presentation Object

[!includeSupport and feedback]