Cmdlet
Add-OfficeOpenDocumentSheet
Adds a worksheet to an OpenDocument spreadsheet and optionally runs nested cell content.
Syntax
Add-OfficeOpenDocumentSheet
[[-Content] <ScriptBlock>]
[-Document <OdsDocument>]
[-Name] <String>
[-PassThru]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Add a worksheet inside an OpenDocument DSL.
Add-OfficeOpenDocumentSheet -Name 'Data' -Content {
Set-OfficeOpenDocumentCell -Row 0 -Column 0 -Value 'Status'
}Parameters
- -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.
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.