Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Close-OfficeNotebook

Module
PSWriteOffice
Inputs
OfficeIMO.Notebook.NotebookDocument

Closes a notebook and releases its source-backed values without writing a file.

Syntax

Close-OfficeNotebook
-Document <NotebookDocument>
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Close a notebook after saving it.

$notebook | Close-OfficeNotebook

Parameters

-Document NotebookDocument requiredpipeline: True (ByValue)
Live notebook to close.

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.