# Add-OfficeWordTableRow

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

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Word.WordTable`

**Outputs**

`OfficeIMO.Word.WordTableRow`

**Source**

[AddOfficeWordTableRowCommand.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Word/AddOfficeWordTableRowCommand.cs#L37) 

Appends a row to an existing Word table.

## Syntax

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

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

Parameter set: `Default`

## 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. InputObject 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 = Open-OfficeWord -Path .\Report.docx
$doc | Get-OfficeWordTable | Select-Object -First 1 |
    Add-OfficeWordTableRow -InputObject '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 = Open-OfficeWord -Path .\Report.docx
$table = Find-OfficeWordTable -Document $doc -Text 'Risk marker' | Select-Object -First 1
$table | Add-OfficeWordTableRow -InputObject ([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

**-InputObject Object optionalposition: 1**

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

**-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.

## 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:C723BF3200C74970C87F63B538FC1889C71CCE165A812F01E761D0EA0E36E4A7 -->
