# Add-OfficeWordField

Adds a field to the current paragraph. 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 

Aliases: WordField

**Module**

`PSWriteOffice`

**Aliases**

`WordField`

**Inputs**

`OfficeIMO.Word.WordParagraph`

**Source**

[AddOfficeWordFieldCommand.cs:19](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/AddOfficeWordFieldCommand.cs#L19) 

Adds a field to the current paragraph.

## Syntax

```
Add-OfficeWordField
[-Advanced]
[-CustomFormat <String>]
[-Format <WordFieldFormat>]
[-Paragraph <WordParagraph>]
[-Parameters <String[]>]
[-PassThru]
[-Type] <WordFieldType>
[<CommonParameters>]
```

[#](#method-add-officewordfield-switchparameter-string-wordfieldformat-wordparagraph-string-switchparameter-wordfieldtype)

Parameter set: `All Parameter Sets`

## Description

Supports standard Word field codes such as Page, Date, or NumPages.

## Examples

### Add a page number field.

```powershell
Add-OfficeWordParagraph { Add-OfficeWordField -Type Page }
```

Inserts a PAGE field into the paragraph.

## Parameters

**-Advanced SwitchParameter optional**

Use advanced field representation.

**-CustomFormat String optional**

Custom format string (date/time fields).

**-Format WordFieldFormat optional**

Optional field format switch.

Possible values: `Lower`, `Upper`, `FirstCap`, `Caps`, `Mergeformat`, `Roman`, `Arabic`, `Alphabetical`, `Ordinal`, `OrdText`, `CardText`, `DollarText`, `Hex`, `CharFormat`

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

Explicit paragraph to receive the field.

**-Parameters String[] optional**

Additional field parameters.

**-PassThru SwitchParameter optional**

Emit the paragraph after adding the field.

**-Type WordFieldType requiredposition: 0**

Field type to insert.

Possible values: `AddressBlock`, `Advance`, `Ask`, `Author`, `AutoNum`, `AutoNumLgl`, `AutoNumOut`, `AutoText`, `AutoTextList`, `Bibliography`, `Citation`, `Comments`, `Compare`, `CreateDate`, `Database`, `Date`, `DocProperty`, `DocVariable`, `Embed`, `FileName`, `FileSize`, `GoToButton`, `GreetingLine`, `HyperlinkIf`, `IncludePicture`, `IncludeText`, `Index`, `Info`, `Keywords`, `LastSavedBy`, `Link`, `ListNum`, `MacroButton`, `MergeField`, `MergeRec`, `MergeSeq`, `Next`, `NextIf`, `NoteRef`, `NumChars`, `NumPages`, `NumWords`, `Page`, `PageRef`, `Print`, `PrintDate`, `Private`, `Quote`, `RD`, `Ref`, `RevNum`, `SaveDate`, `Section`, `SectionPages`, `Seq`, `Set`, `SkipIf`, `StyleRef`, `Subject`, `Symbol`, `TA`, `TC`, `Template`, `Time`, `Title`, `TOA`, `TOC`, `UserAddress`, `UserInitials`, `UserName`, `XE`, `Formula`, `EQ`

## 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:6AF519C8D4ACD79CD47182F423EB895ABDBB83BB9045F9301FC5053EE406F4CD -->
