# Find-OfficeWordList

Finds Word lists containing matching list-item text.

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.WordDocument` `OfficeIMO.Word.WordSection`

**Outputs**

`OfficeIMO.Word.WordList`

**Source**

[FindOfficeWordListCommand.cs:41](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/FindOfficeWordListCommand.cs#L41) 

Finds Word lists containing matching list-item text.

## Syntax

```
Find-OfficeWordList
[-CaseSensitive]
[-Path] <String>
[-Text] <String>
[<CommonParameters>]
```

[#](#method-find-officewordlist-switchparameter-string-string)

Parameter set: `PathText`

```
Find-OfficeWordList
[-CaseSensitive]
[-Path] <String>
[-Pattern] <String>
[<CommonParameters>]
```

[#](#method-find-officewordlist-switchparameter-string-string-2)

Parameter set: `PathRegex`

```
Find-OfficeWordList
[-CaseSensitive]
-Document <WordDocument>
[-Text] <String>
[<CommonParameters>]
```

[#](#method-find-officewordlist-switchparameter-worddocument-string)

Parameter set: `DocumentText`

```
Find-OfficeWordList
[-CaseSensitive]
-Document <WordDocument>
[-Pattern] <String>
[<CommonParameters>]
```

[#](#method-find-officewordlist-switchparameter-worddocument-string-2)

Parameter set: `DocumentRegex`

```
Find-OfficeWordList
[-CaseSensitive]
-Section <WordSection>
[-Text] <String>
[<CommonParameters>]
```

[#](#method-find-officewordlist-switchparameter-wordsection-string)

Parameter set: `SectionText`

```
Find-OfficeWordList
[-CaseSensitive]
[-Pattern] <String>
-Section <WordSection>
[<CommonParameters>]
```

[#](#method-find-officewordlist-switchparameter-string-wordsection)

Parameter set: `SectionRegex`

## Description

Searches list items in a Word document or section and returns matching WordList objects. This is useful when a document has an existing checklist or numbered list and the script needs to append to that list rather than create a new one elsewhere in the document.

Use -Text for literal contains matching or -Pattern for regular expressions. The returned list objects can be piped directly to Add-OfficeWordListItem.

## Examples

### Find an existing checklist and append another item.

```powershell
$doc = Get-OfficeWord -Path .\Report.docx
Find-OfficeWordList -Document $doc -Text 'Initial review' |
    Add-OfficeWordListItem -Text 'Final approval'
```

Searches list-item paragraphs and returns matching OfficeIMO list objects for further editing.

### Append several follow-up items to an existing checklist.

```powershell
$doc = Get-OfficeWord -Path .\Handover.docx
$list = Find-OfficeWordList -Document $doc -Text 'Initial review' | Select-Object -First 1
$list | Add-OfficeWordListItem -Text 'Business sign-off'
$list | Add-OfficeWordListItem -Text 'Go-live approval'
$doc | Close-OfficeWord -Save
```

Finds a checklist by an item it already contains and appends new items to the same list.

## Parameters

**-CaseSensitive SwitchParameter optional**

Use case-sensitive matching.

**-Path String requiredposition: 0aliases: FilePath, InputPathsets: PathText, PathRegex**

Path to the document to open read-only for searching.

**-Text String requiredposition: 1sets: PathText, DocumentText, SectionText**

Literal text to find in list items.

**-Pattern String requiredposition: 1sets: PathRegex, DocumentRegex, SectionRegex**

Regular expression pattern to find in list items.

**-Document WordDocument requiredpipeline: True (ByValue)sets: DocumentText, DocumentRegex**

Open document to inspect. The caller controls the document lifetime.

**-Section WordSection requiredpipeline: True (ByValue)sets: SectionText, SectionRegex**

Section to inspect when the caller only wants lists in a specific section.

## 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:88555CA04EF1FEB2B0DF3216B8340AF8C8B64AD93EA83F577D610991A9F82F32 -->
