# Set-OfficePowerPointTableCell

Sets text in an existing PowerPoint table cell. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice Cmdlet Reference.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`System.Object`

**Outputs**

`OfficeIMO.PowerPoint.PowerPointTableCell`

**Source**

[SetOfficePowerPointTableCellCommand.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/PowerPoint/SetOfficePowerPointTableCellCommand.cs#L31) 

Sets text in an existing PowerPoint table cell.

## Syntax

```
Set-OfficePowerPointTableCell
-Column <Int32>
[-InputObject] <Object>
[-PassThru]
-Row <Int32>
-Text <String>
[<CommonParameters>]
```

[#](#method-set-officepowerpointtablecell-int32-object-switchparameter-int32-string)

Parameter set: `Text`

```
Set-OfficePowerPointTableCell
-Column <Int32>
-Content <ScriptBlock>
[-InputObject] <Object>
[-PassThru]
-Row <Int32>
[<CommonParameters>]
```

[#](#method-set-officepowerpointtablecell-int32-scriptblock-object-switchparameter-int32)

Parameter set: `Content`

## Description

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.

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Add Charts and Tables to PowerPoint Slides](/docs/powerpoint/charts-tables/) Guide
  
  Add native, editable PowerPoint tables and charts from .NET objects, merge cells, continue long tables across slides, and style chart axes and labels.

## Examples

### Update a cell in a found table.

```powershell
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.

```powershell
$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 required**

One-based column number.

**-InputObject Object requiredposition: 0pipeline: True (ByValue)**

PowerPoint table or table shape info returned by Get-OfficePowerPointShape.

**-PassThru SwitchParameter optional**

Emit the updated table cell for additional OfficeIMO-level edits.

**-Row Int32 required**

One-based row number.

**-Text String requiredsets: Text**

Replacement cell text. A null value clears the cell.

**-Content ScriptBlock requiredsets: Content**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:4E5E01B410283E7988284E31EB299607BB912AD8F3171369639C8CA8BC736967 -->
