# Add-OfficeExcelReportTitle

Adds the report title and subtitle. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice Cmdlet Reference.

Cmdlet 

Aliases: ExcelReportTitle

**Module**

`PSWriteOffice`

**Aliases**

`ExcelReportTitle`

**Inputs**

`None`

**Source**

[AddOfficeExcelReportTitleCommand.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Excel/AddOfficeExcelReportTitleCommand.cs#L36) 

Adds the report title and subtitle.

## Syntax

```
Add-OfficeExcelReportTitle
[-PassThru]
[[-Subtitle] <String>]
[-Title] <String>
[<CommonParameters>]
```

[#](#method-add-officeexcelreporttitle-switchparameter-string-string)

Parameter set: `Default`

## Examples

### Add a report title

```powershell
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

```powershell
$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 optional**

Emits the native result after the operation.

**-Subtitle String optionalposition: 1**

Dashboard subtitle.

**-Title String requiredposition: 0**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:CFAF5A8B14D263E0C39FF051C029333A74CA44D6724F3FFF28DCCFAB002E6679 -->
