# Add-OfficeWordTableRow

Appends a row to an existing Word table. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Word.WordTable`

**Outputs**

`OfficeIMO.Word.WordTableRow`

**Source**

[AddOfficeWordTableRowCommand.cs:40](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/AddOfficeWordTableRowCommand.cs#L40) 

Appends a row to an existing Word table.

## Syntax

```
Add-OfficeWordTableRow
[-PassThru]
[-Table] <WordTable>
[[-Values] <Object>]
[<CommonParameters>]
```

[#](#method-add-officewordtablerow-switchparameter-wordtable-object)

Parameter set: `All Parameter Sets`

## Description

Adds a new row to a WordTable that was already created or found in an existing document. The command accepts scalar values, arrays, dictionaries, ordered dictionaries, and PowerShell objects. Values are expanded from left to right across cells; missing values become empty cells. This keeps existing-document editing simple without forcing callers back into the Word DSL.

## Examples

### Append values to the first table.

```powershell
$doc = Get-OfficeWord -Path .\Report.docx
$doc | Get-OfficeWordTable | Select-Object -First 1 |
    Add-OfficeWordTableRow -Values 'Service', 'Ready', 'Low'
```

Adds one table row and writes the supplied values into its cells.

### Append an object-like row to a table found by marker text.

```powershell
$doc = Get-OfficeWord -Path .\Report.docx
$table = Find-OfficeWordTable -Document $doc -Text 'Risk marker' | Select-Object -First 1
$table | Add-OfficeWordTableRow -Values ([ordered]@{
    Item  = 'Mitigation plan'
    Owner = 'Service Desk'
    State = 'Ready'
})
$doc | Close-OfficeWord -Save
```

Uses an ordered dictionary so values are written into predictable table columns.

## Parameters

**-PassThru SwitchParameter optional**

Emit the created row for additional OfficeIMO-level edits.

**-Table WordTable requiredposition: 0pipeline: True (ByValue)**

Existing Word table to append to, usually from Get-OfficeWordTable or Find-OfficeWordTable.

**-Values Object optionalposition: 1aliases: Data, InputObject**

Values to write into the new row. Arrays, dictionaries, ordered 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).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:88F8A42C1EE0C8905CFF2972742AA09AE80F0DFEC71AA4AE32E0C871DF487239 -->
