# Add-OfficeExcelReportSheet

Creates a worksheet through the OfficeIMO sheet composer and runs report-block cmdlets inside it.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: ExcelReportSheet

**Module**

`PSWriteOffice`

**Aliases**

`ExcelReportSheet`

**Inputs**

`None`

**Source**

[AddOfficeExcelReportSheetCommand.cs:21](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/AddOfficeExcelReportSheetCommand.cs#L21) 

Creates a worksheet through the OfficeIMO sheet composer and runs report-block cmdlets inside it.

## Syntax

```
Add-OfficeExcelReportSheet
[-AutoFitRows]
[[-Content] <ScriptBlock>]
[-KeyFillColor <String>]
[-Name] <String>
[-NoAutoFit]
[-PassThru]
[-SectionHeaderFillColor <String>]
[<CommonParameters>]
```

[#](#method-add-officeexcelreportsheet-switchparameter-scriptblock-string-string-switchparameter-switchparameter-string)

Parameter set: `All Parameter Sets`

## Examples

### Create a composed report sheet.

```powershell
New-OfficeExcel -Path .\report.xlsx {
  Add-OfficeExcelReportSheet -Name Summary {
    Add-OfficeExcelReportTitle -Title 'Operational Summary' -Subtitle 'Current view'
    Add-OfficeExcelReportKpiRow -InputObject @{ Ready = 12; Blocked = 2 }
  }
}
```

Creates a report-oriented worksheet with title and KPI blocks.

## Parameters

**-AutoFitRows SwitchParameter optional**

Auto-fit row heights during composer finalization.

**-Content ScriptBlock optionalposition: 1**

Report block script to run inside the composer context.

**-KeyFillColor String optional**

Override the key-cell fill color used by KPI and property blocks.

**-Name String requiredposition: 0**

Name of the report worksheet to create.

**-NoAutoFit SwitchParameter optional**

Skip composer auto-fit finalization.

**-PassThru SwitchParameter optional**

Emit the created worksheet.

**-SectionHeaderFillColor String optional**

Override the section-header fill color.

## 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).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:596A417C98FC918194F0CA15D35719454E7BA3D5873A4DEB46D4BE9BEEE9F2AE -->
