Cmdlet
Add-OfficeExcelReportTitle
Adds the report title and subtitle.
Syntax
Add-OfficeExcelReportTitle
[-PassThru]
[[-Subtitle] <String>]
[-Title] <String>
[<CommonParameters>]#Parameter set:
DefaultExamples
Add a report title
New-OfficeExcel -Path .\Reports\Operations.xlsx {
ExcelReportSheet 'Summary' {
ExcelReportTitle 'Operations summary'
}
}Adds the title block at the top of a report sheet.
Add a title with the reporting period
$period = (Get-Date).ToString('MMMM yyyy')
New-OfficeExcel -Path .\Reports\Capacity-Review.xlsx {
ExcelReportSheet 'Capacity' {
ExcelReportTitle 'Capacity review' "Storage and compute, $period"
ExcelReportTable (Import-OfficeCsv -Path .\Data\Capacity.csv) 'Clusters'
}
}Adds a title and a subtitle built from the current month, so a scheduled run labels itself.
Parameters
- -PassThru SwitchParameter
- Emits the native result after the operation.
- -Subtitle String
- Dashboard subtitle.
- -Title String
- Chart title.
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.