API Reference

Cmdlet

Add-OfficeOpenDocumentSheet

Namespace PSWriteOffice
Inputs
OfficeIMO.OpenDocument.OdsDocument
Outputs
OfficeIMO.OpenDocument.OdsSheet

Adds a worksheet to an OpenDocument spreadsheet and optionally runs nested cell content.

Remarks

Adds a worksheet to an OpenDocument spreadsheet and optionally runs nested cell content.

Examples

Authored help example

Add a worksheet inside an OpenDocument DSL.

PS>


Add-OfficeOpenDocumentSheet -Name 'Data' -Content {
                Set-OfficeOpenDocumentCell -Row 0 -Column 0 -Value 'Status'
            }
        

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.

Syntax

Add-OfficeOpenDocumentSheet [-Content <ScriptBlock>] [-Document <OdsDocument>] -Name <String> [-PassThru] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Content ScriptBlock optionalposition: 1pipeline: False
Nested cell commands that use this worksheet as their current target.
Document OdsDocument optionalposition: namedpipeline: True (ByValue)
OpenDocument spreadsheet. Omit inside New-OfficeOpenDocument -Content.
Name String requiredposition: 0pipeline: False
Worksheet name.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the created worksheet.

Outputs

OfficeIMO.OpenDocument.OdsSheet