Fonts.Replace method (PowerPoint)

Replaces a font in the Fonts collection.

Syntax

expression.Replace (Original, Replacement)

expression A variable that represents a Fonts object.

Parameters

Name Required/Optional Data type Description
Original Required String The name of the font to replace.
Replacement Required String The 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

Fonts Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.