# Close-OfficeNotebook

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

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Notebook.NotebookDocument`

**Source**

[CloseOfficeNotebookCommand.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/51cd59ece1fa22f062b7419cfd3afa43c266a7cf/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Notebook/CloseOfficeNotebookCommand.cs#L9) 

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

## Syntax

```
Close-OfficeNotebook
-Document <NotebookDocument>
[<CommonParameters>]
```

[#](#method-close-officenotebook-notebookdocument)

Parameter set: `All Parameter Sets`

## Examples

### Close a notebook after saving it.

```powershell
$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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:C96EBC7779994EE8B0D9DAA845157409233ADDDA7076E6A0113B97734C54B973 -->
