Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeNotebookCell

Module
PSWriteOffice
Inputs
OfficeIMO.Notebook.NotebookDocument
Outputs
OfficeIMO.Notebook.NotebookCell

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>]
#
Parameter set: All Parameter Sets

Examples

Select saved outputs from all code cells.

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