API Reference
Command
Copy-OfficePowerPointSlide
Copies an existing slide within a PowerPoint presentation.
Remarks
Copies an existing slide within a PowerPoint presentation.
Examples
Duplicate the first slide and insert the copy after it.
PS>Copy-OfficePowerPointSlide -Presentation $ppt -Index 0
Creates a duplicate of slide 1 and inserts it at position 2.
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
Copy-OfficePowerPointSlide -Index <Int32> [-InsertAt <Nullable`1>] [-Presentation <PowerPointPresentation>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Index Int32
- Zero-based slide index to duplicate.
- InsertAt Nullable`1
- Optional target index for the duplicate; omit to insert after the source slide.
- Presentation PowerPointPresentation
- Presentation to update (optional inside DSL).
Outputs
OfficeIMO.PowerPoint.PowerPointSlide