Table of contents
TOC
Collapse the table of content
Expand the table of content

Fonts.Replace Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Replaces a font in the Fonts collection.

Syntax

expression. Replace( Original, Replacement )

expression A variable that represents a Fonts object.

Parameters

NameRequired/OptionalData TypeDescription
OriginalRequiredStringThe name of the font to replace.
ReplacementRequiredStringThe name of the replacement font.

Example

This example replaces the Times New Roman font with the Courier font in the active presentation.

Application.ActivePresentation.Fonts _
    .Replace Original:="Times New Roman", Replacement:="Courier"

See also

Concepts

Fonts Object

© 2018 Microsoft