# Add-OfficeExcelReportCallout

Adds a highlighted info, success, warning or error callout.

Cmdlet 

Aliases: ExcelReportCallout

**Module**

`PSWriteOffice`

**Aliases**

`ExcelReportCallout`

**Inputs**

`None`

**Source**

[AddOfficeExcelReportCalloutCommand.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Excel/AddOfficeExcelReportCalloutCommand.cs#L41) 

Adds a highlighted info, success, warning or error callout.

## Syntax

```
Add-OfficeExcelReportCallout
[[-Kind] <Info|Success|Warning|Error|Critical>]
[-PassThru]
[-Span <Int32>]
[-Text] <String>
[-Title] <String>
[<CommonParameters>]
```

[#](#method-add-officeexcelreportcallout-officeexcelreportcalloutkind-switchparameter-int32-string-string)

Parameter set: `Default`

## Examples

### Add an information callout

```powershell
New-OfficeExcel -Path .\Reports\Operations.xlsx {
    ExcelReportSheet 'Summary' {
        ExcelReportCallout Info 'Data source' 'Monitoring export from 1 November, 06:00.'
    }
}
```

Highlights a note for readers in an information callout.

### Report results with matching callouts

```powershell
$failed = Import-OfficeCsv -Path .\Data\Backup-Results.csv | Where-Object Result -ne 'Success'
New-OfficeExcel -Path .\Reports\Backup-Check.xlsx {
    ExcelReportSheet 'Backups' {
        ExcelReportTitle 'Nightly backup check' (Get-Date).ToString('d MMMM yyyy')
        if ($failed) {
            ExcelReportCallout Error 'Backups failed' "$(@($failed).Count) jobs did not complete. Details are below."
            ExcelReportTable $failed 'Failed jobs'
        } else {
            ExcelReportCallout Success 'All backups completed' 'Every scheduled job finished successfully.'
        }
    }
}
```

Adds a success or error callout depending on whether the backup checks passed, so the outcome is the first thing a reader sees.

## Parameters

**-Kind OfficeExcelReportCalloutKind optionalposition: 0**

Metadata kind to add.

Possible values: `Info`, `Success`, `Warning`, `Error`, `Critical`

**-PassThru SwitchParameter optional**

Emits the native result after the operation.

**-Span Int32 optional**

Number of worksheet columns occupied by the report block.

**-Text String requiredposition: 2**

Comment text.

**-Title String requiredposition: 1**

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:F8306D4A4A470B17D91D711126B086A4A324FD8A6E59C82295FDFE2C64328604 -->
