# Get-OfficeNotebookCell

Streams notebook cells in document order, optionally by position or cell kind.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Notebook.NotebookDocument`

**Outputs**

`OfficeIMO.Notebook.NotebookCell`

**Source**

[GetOfficeNotebookCellCommand.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/51cd59ece1fa22f062b7419cfd3afa43c266a7cf/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Notebook/GetOfficeNotebookCellCommand.cs#L12) 

Streams notebook cells in document order, optionally by position or cell kind.

## Syntax

```
Get-OfficeNotebookCell
-Document <NotebookDocument>
[-Index <Int32>]
[-Kind <Unknown|Markdown|Code|Raw>]
[<CommonParameters>]
```

[#](#method-get-officenotebookcell-notebookdocument-int32-notebookcellkind)

Parameter set: `All Parameter Sets`

## Examples

### Select saved outputs from all code cells.

```powershell
$notebook | Get-OfficeNotebookCell -Kind Code | Get-OfficeNotebookOutput
```

## Parameters

**-Document NotebookDocument requiredpipeline: True (ByValue)**

Live notebook containing the cells.

**-Index Int32 optional**

Zero-based cell position. Omit to enumerate the notebook.

**-Kind NotebookCellKind optional**

Optional cell-kind filter.

Possible values: `Unknown`, `Markdown`, `Code`, `Raw`

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