# Add-OfficeExcelPageBreak

Adds manual row or column page breaks to an Excel worksheet.

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 **725**

Forks **84**

Open issues **4**

Total downloads **5,250,223**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: ExcelPageBreak

**Module**

`PSWriteOffice`

**Aliases**

`ExcelPageBreak`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Source**

[AddOfficeExcelPageBreakCommand.cs:16](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/AddOfficeExcelPageBreakCommand.cs#L16) 

Adds manual row or column page breaks to an Excel worksheet.

## Syntax

```
Add-OfficeExcelPageBreak
[-Column <Int32[]>]
[-PassThru]
[-Row <Int32[]>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-add-officeexcelpagebreak-int32-switchparameter-int32-string-int32)

Parameter set: `Context`

```
Add-OfficeExcelPageBreak
[-Column <Int32[]>]
[-PassThru]
[-Path] <String>
[-Row <Int32[]>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-add-officeexcelpagebreak-int32-switchparameter-string-int32-string-int32)

Parameter set: `Path`

```
Add-OfficeExcelPageBreak
[-Column <Int32[]>]
-Document <ExcelDocument>
[-PassThru]
[-Row <Int32[]>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-add-officeexcelpagebreak-int32-exceldocument-switchparameter-int32-string-int32)

Parameter set: `Document`

## Examples

### Insert print page breaks for report sections.

```powershell
ExcelSheet 'Data' { Add-OfficeExcelPageBreak -Row 25,50 -Column 8 }
```

Adds row page breaks after rows 25 and 50 and a column page break after column 8.

## Parameters

**-Column Int32[] optional**

One-based columns after which manual page breaks should be inserted.

**-PassThru SwitchParameter optional**

Emit page-break records after adding them.

**-Row Int32[] optional**

One-based rows after which manual page breaks should be inserted.

**-Sheet String optionalaliases: WorksheetName**

Worksheet name. Defaults to the current sheet inside an ExcelSheet block.

**-SheetIndex Int32 optional**

Worksheet index when using a workbook object or path.

**-Path String requiredposition: 0aliases: FilePath, InputPathsets: Path**

Workbook path to update.

**-Document ExcelDocument requiredpipeline: True (ByValue)sets: Document**

Workbook to update outside the DSL context.

## 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:4D5BC920331206E41CD064F3E527651BBDA25F9682D20417CAF8961AE80F2A5F -->
