Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.03 KB

PowerPoint.Fonts.Replace.md

File metadata and controls

49 lines (30 loc) · 1.03 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Fonts.Replace method (PowerPoint)
vbapp10.chm528004
vbapp10.chm528004
PowerPoint.Fonts.Replace
666bcfad-b87e-b63b-70c1-ca0873cf9f94
06/08/2017
medium

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

[!includeSupport and feedback]