# Update-OfficePowerPointText

Replaces text in a PowerPoint slide or presentation.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: Replace-OfficePowerPointText

**Module**

`PSWriteOffice`

**Aliases**

`Replace-OfficePowerPointText`

**Inputs**

`OfficeIMO.PowerPoint.PowerPointPresentation` `OfficeIMO.PowerPoint.PowerPointSlide`

**Outputs**

`System.Int32`

**Source**

[UpdateOfficePowerPointTextCommand.cs:24](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/PowerPoint/UpdateOfficePowerPointTextCommand.cs#L24) 

Replaces text in a PowerPoint slide or presentation.

## Syntax

```
Update-OfficePowerPointText
[-IncludeNotes]
[-IncludeTables <Boolean>]
-NewValue <String>
-OldValue <String>
[-PassThru]
[<CommonParameters>]
```

[#](#method-update-officepowerpointtext-switchparameter-boolean-string-string-switchparameter)

Parameter set: `Auto`

```
Update-OfficePowerPointText
[-IncludeNotes]
[-IncludeTables <Boolean>]
-NewValue <String>
-OldValue <String>
[-PassThru]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]
```

[#](#method-update-officepowerpointtext-switchparameter-boolean-string-string-switchparameter-powerpointpresentation)

Parameter set: `Presentation`

```
Update-OfficePowerPointText
[-IncludeNotes]
[-IncludeTables <Boolean>]
-NewValue <String>
-OldValue <String>
[-PassThru]
[-Slide <PowerPointSlide>]
[<CommonParameters>]
```

[#](#method-update-officepowerpointtext-switchparameter-boolean-string-string-switchparameter-powerpointslide)

Parameter set: `Slide`

## Description

Can replace text in text boxes, tables, and optionally notes using the OfficeIMO text replacement helpers.

## Examples

### Replace fiscal year text across the whole deck.

```powershell
$ppt = New-OfficePowerPoint -Path .\Examples\Documents\PowerPointUpdateText.pptx -NoSave
$slide = Add-OfficePowerPointSlide -Presentation $ppt -Layout 1 -PassThru
Add-OfficePowerPointTextBox -Slide $slide -Text 'FY24 summary'
Set-OfficePowerPointNotes -Slide $slide -Text 'Mention FY24 assumptions.'
$count = Update-OfficePowerPointText -Presentation $ppt -OldValue 'FY24' -NewValue 'FY25' -IncludeNotes -PassThru
$ppt | Close-OfficePowerPoint -Save
```

Replaces matching text throughout the presentation and notes, returning the replacement count.

## Parameters

**-IncludeNotes SwitchParameter optional**

Include notes text in the replacement operation.

**-IncludeTables Boolean optional**

Include table cells in the replacement operation.

**-NewValue String required**

Replacement text.

**-OldValue String required**

Text to find.

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-Presentation PowerPointPresentation optionalpipeline: True (ByValue)sets: Presentation**

Presentation to update.

**-Slide PowerPointSlide optionalpipeline: True (ByValue)sets: Slide**

Slide to update.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:E9D16F7818B1624DBCA4CDDC2F98791C40C70BFDC38696F63739F5C69F46EC63 -->
