Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Close-OfficeProject

Module PSWriteOffice
Inputs
OfficeIMO.Project.ProjectDocument

Closes a project without implicitly saving it.

Syntax

Close-OfficeProject -Document <ProjectDocument> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Closes a project without implicitly saving it.

$project | Close-OfficeProject

Parameters

-Document ProjectDocument requiredpipeline: True (ByValue)
Project to inspect or change.

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.