Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeExcelReportTitle

Aliases: ExcelReportTitle
Module PSWriteOffice
Aliases
ExcelReportTitle
Inputs
None

Adds a title block to the current Excel report sheet.

Syntax

Add-OfficeExcelReportTitle [-PassThru] [[-Subtitle] <String>] [-Title] <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Add a polished title to a report sheet.

New-OfficeExcel -Path .\Operations.xlsx {
    Add-OfficeExcelReportSheet -Name Summary {
        Add-OfficeExcelReportTitle -Title 'Operational Summary' -Subtitle 'Current month'
        Add-OfficeExcelReportKpiRow -InputObject @{ Revenue = 125000; Incidents = 3; Status = 'Ready' }
    }
}

Uses the OfficeIMO sheet composer through PSWriteOffice's thin report-block wrapper.

Parameters

-PassThru SwitchParameter optional
Emit the object created or changed by the command.
-Subtitle String optionalposition: 1
Optional subtitle text.
-Title String requiredposition: 0
Title text.

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.