# Add-OfficePowerPointTableRow

Appends or inserts a row in an existing PowerPoint table.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`System.Object`

**Outputs**

`OfficeIMO.PowerPoint.PowerPointTableRow`

**Source**

[AddOfficePowerPointTableRowCommand.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/PowerPoint/AddOfficePowerPointTableRowCommand.cs#L35) 

Appends or inserts a row in an existing PowerPoint table.

## Syntax

```
Add-OfficePowerPointTableRow
[-InputObject] <Object>
[-PassThru]
[-Position <Int32>]
[-TemplateRow <Int32>]
[[-Value] <Object>]
[<CommonParameters>]
```

[#](#method-add-officepowerpointtablerow-object-switchparameter-int32-int32-object)

Parameter set: `Table`

## Description

Accepts a PowerPointTable or a PowerPointShapeInfo record whose shape is a table. Values can be scalars, arrays, dictionaries, or PowerShell objects; arrays and object properties are expanded across table cells. The new row is cloned from an existing template row so table formatting, borders, and style choices are preserved.

## Examples

### Find a table and append a row.

```powershell
Get-OfficePowerPointShape -Document $ppt -Text 'Metric' -Kind Table |
                Add-OfficePowerPointTableRow -Value 'Latency', 'Ready'
```

Accepts a PowerPoint table or table shape metadata and writes the supplied values into the new row.

### Insert a row above the first data row using a template row.

```powershell
$shape = Get-OfficePowerPointShape -Document $ppt -Text 'Metric' -Kind Table | Select-Object -First 1
$shape | Add-OfficePowerPointTableRow -Position 2 -TemplateRow 2 -Value ([ordered]@{
    Metric = 'Documentation'
    State  = 'Ready'
})
```

Resolves the table from shape metadata, inserts a formatted row at position 2, and maps values across cells.

## Parameters

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

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

**-PassThru SwitchParameter optional**

Emit the created row for additional OfficeIMO-level edits.

**-Position Int32 optional**

Optional one-based position where the row should be inserted. Defaults to appending at the end.

**-TemplateRow Int32 optional**

Optional one-based template row to clone. Defaults to the last existing row.

**-Value Object optionalposition: 1**

Values to write into the new row. Arrays, dictionaries, and objects are expanded across cells.

## 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:42F65C15C0A38CB49B10593170E9ABCA207EECA9BEC63DACF66A031483D46634 -->
