# Add-OfficeWordComboBox

Adds a combo box content control to the current paragraph.

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

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: WordComboBox

**Module**

`PSWriteOffice`

**Aliases**

`WordComboBox`

**Inputs**

`OfficeIMO.Word.WordParagraph`

**Outputs**

`OfficeIMO.Word.WordComboBox`

**Source**

[AddOfficeWordComboBoxCommand.cs:20](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/AddOfficeWordComboBoxCommand.cs#L20) 

Adds a combo box content control to the current paragraph.

## Syntax

```
Add-OfficeWordComboBox
[-Alias <String>]
[-DefaultValue <String>]
[-Items] <String[]>
[-Paragraph <WordParagraph>]
[-PassThru]
[-Tag <String>]
[<CommonParameters>]
```

[#](#method-add-officewordcombobox-string-string-string-wordparagraph-switchparameter-string)

Parameter set: `All Parameter Sets`

## Examples

### Add a combo box with a default value.

```powershell
Add-OfficeWordParagraph { Add-OfficeWordComboBox -Items 'Red','Blue' -DefaultValue 'Blue' -Alias 'Color' }
```

Creates a combo box control with the selected default value.

## Parameters

**-Alias String optional**

Optional alias for the control.

**-DefaultValue String optional**

Optional default value (must match one of the items).

**-Items String[] requiredposition: 0**

Items to include in the combo box.

**-Paragraph WordParagraph optionalpipeline: True (ByValue)**

Explicit paragraph to receive the control.

**-PassThru SwitchParameter optional**

Emit the created control.

**-Tag String optional**

Optional tag for the control.

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