# Clear-OfficeExcelPageBreak

Clears manual row or column page breaks from 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 **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: ExcelPageBreakClear

**Module**

`PSWriteOffice`

**Aliases**

`ExcelPageBreakClear`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Source**

[ClearOfficeExcelPageBreakCommand.cs:18](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/ClearOfficeExcelPageBreakCommand.cs#L18) 

Clears manual row or column page breaks from an Excel worksheet.

## Syntax

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

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

Parameter set: `Context`

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

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

Parameter set: `Path`

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

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

Parameter set: `Document`

## Examples

### Remove stale manual page breaks.

```powershell
Clear-OfficeExcelPageBreak -Path .\Report.xlsx -Sheet Data -Row 25 -Column 8 -Confirm:$false
Get-OfficeExcelPageBreak -Path .\Report.xlsx -Sheet Data |
    Format-Table Type, Position, SheetName
```

Removes the selected row and column page breaks and saves the workbook.

## Parameters

**-All SwitchParameter optional**

Clear all manual row and column page breaks from selected worksheets.

**-Column Int32[] optional**

One-based columns whose manual page breaks should be removed.

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-Row Int32[] optional**

One-based rows whose manual page breaks should be removed.

**-Sheet String optionalaliases: WorksheetName**

Worksheet name to update. Defaults to the current DSL sheet or all workbook sheets.

**-SheetIndex Int32 optional**

Worksheet index (0-based) to update. Defaults to the current DSL sheet or all workbook sheets.

**-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:01F5F100BA3BE178C0FA71E6E2AA5BCBAA15F03C2DDE0ACBF8EE94E12912D9D3 -->
