Skip to content

Close-OfficeWord unable to close an open worddoc without a valid WordDoc object being passed. #18

@AspenForester

Description

@AspenForester

The syntax for Close-OfficeWord suggests that the -Document parameter is optional. That would lead one to believe that if they had done an Get-OfficeWord without assigning the output to a variable, that they could then simply execute Close-OfficeWord to close it again, but that doesn't appear to be the case.

Additionally, should one's script error before having a chance to close a previously opened document, that document is held in limbo until the PowerShell session is closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions