Set-OfficePowerPointTableCell
Sets text in an existing PowerPoint table cell.
Syntax
Set-OfficePowerPointTableCell
-Column <Int32>
[-InputObject] <Object>
[-PassThru]
-Row <Int32>
-Text <String>
[<CommonParameters>]#TextSet-OfficePowerPointTableCell
-Column <Int32>
-Content <ScriptBlock>
[-InputObject] <Object>
[-PassThru]
-Row <Int32>
[<CommonParameters>]#ContentDescription
Accepts a PowerPointTable or a PowerPointShapeInfo record whose shape is a table. Row and column coordinates are one-based. Use this after Get-OfficePowerPointShape -Kind Table when a script needs to update a specific cell inside a deck that already exists.
Examples
Update a cell in a found table.
Get-OfficePowerPointShape -Document $ppt -Text 'Metric' -Kind Table |
Set-OfficePowerPointTableCell -Row 2 -Column 2 -Text 'Ready'Accepts a PowerPoint table or table shape metadata and updates a one-based table cell.
Update a state cell after locating a readiness table.
$table = Get-OfficePowerPointShape -Document $ppt -Text 'Risk' -Kind Table | Select-Object -First 1
$table | Set-OfficePowerPointTableCell -Row 2 -Column 2 -Text 'Mitigating'Uses the table found by text content and updates the second row, second column.
Parameters
- -Column Int32
- One-based column number.
- -InputObject Object
- PowerPoint table or table shape info returned by Get-OfficePowerPointShape.
- -PassThru SwitchParameter
- Emit the updated table cell for additional OfficeIMO-level edits.
- -Row Int32
- One-based row number.
- -Text String
- Replacement cell text. A null value clears the cell.
- -Content ScriptBlock
- Replacement rich paragraphs and runs, using PowerPointParagraph and PowerPointText.
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.