title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Fonts.Replace method (PowerPoint) |
vbapp10.chm528004 |
|
|
666bcfad-b87e-b63b-70c1-ca0873cf9f94 |
06/08/2017 |
medium |
Replaces a font in the Fonts collection.
expression.Replace (Original, Replacement)
expression A variable that represents a Fonts object.
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. |
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"
[!includeSupport and feedback]