API Reference
Cmdlet
Add-OfficeOpenDocumentSheet
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
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 SetsParameters
- Content ScriptBlock
- Nested cell commands that use this worksheet as their current target.
- Document OdsDocument
- OpenDocument spreadsheet. Omit inside New-OfficeOpenDocument -Content.
- Name String
- Worksheet name.
- PassThru SwitchParameter
- Emit the created worksheet.
Outputs
OfficeIMO.OpenDocument.OdsSheet