OfficeIMO

API Reference

Command

Update-OfficePowerPointText

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation OfficeIMO.PowerPoint.PowerPointSlide
Outputs
System.Int32

Replaces text in a PowerPoint slide or presentation.

Remarks

Replaces text in a PowerPoint slide or presentation.

Examples

Replace fiscal year text across the whole deck.


PS>Update-OfficePowerPointText -Presentation $ppt -OldValue 'FY24' -NewValue 'FY25' -IncludeNotes
        

Replaces matching text throughout the presentation and notes.

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.

Syntax

Update-OfficePowerPointText [-IncludeNotes] [-IncludeTables <Boolean>] -NewValue <String> -OldValue <String> [<CommonParameters>]
#
Parameter set: Auto

Parameters

IncludeNotes SwitchParameter optionalposition: namedpipeline: False
Include notes text in the replacement operation.
IncludeTables Boolean optionalposition: namedpipeline: False
Include table cells in the replacement operation.
NewValue String requiredposition: namedpipeline: False
Replacement text.
OldValue String requiredposition: namedpipeline: False
Text to find.

Outputs

System.Int32

Update-OfficePowerPointText [-IncludeNotes] [-IncludeTables <Boolean>] -NewValue <String> -OldValue <String> [-Presentation <PowerPointPresentation>] [<CommonParameters>]
#
Parameter set: Presentation

Parameters

IncludeNotes SwitchParameter optionalposition: namedpipeline: False
Include notes text in the replacement operation.
IncludeTables Boolean optionalposition: namedpipeline: False
Include table cells in the replacement operation.
NewValue String requiredposition: namedpipeline: False
Replacement text.
OldValue String requiredposition: namedpipeline: False
Text to find.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to update.

Outputs

System.Int32

Update-OfficePowerPointText [-IncludeNotes] [-IncludeTables <Boolean>] -NewValue <String> -OldValue <String> [-Slide <PowerPointSlide>] [<CommonParameters>]
#
Parameter set: Slide

Parameters

IncludeNotes SwitchParameter optionalposition: namedpipeline: False
Include notes text in the replacement operation.
IncludeTables Boolean optionalposition: namedpipeline: False
Include table cells in the replacement operation.
NewValue String requiredposition: namedpipeline: False
Replacement text.
OldValue String requiredposition: namedpipeline: False
Text to find.
Slide PowerPointSlide optionalposition: namedpipeline: True (ByValue)
Slide to update.

Outputs

System.Int32