# ConvertTo-OfficeExcelHtml

Converts an Excel workbook to an HTML review document.

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: ConvertTo-ExcelHtml

**Module**

`PSWriteOffice`

**Aliases**

`ConvertTo-ExcelHtml`

**Inputs**

`OfficeIMO.Excel.ExcelDocument` `System.String`

**Outputs**

`System.String` `System.IO.FileInfo`

**Source**

[ConvertToOfficeExcelHtmlCommand.cs:30](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/ConvertToOfficeExcelHtmlCommand.cs#L30) 

Converts an Excel workbook to an HTML review document.

## Syntax

```
ConvertTo-OfficeExcelHtml
[-EmptyCellText <String>]
[-MaxRowsPerSheet <Int32>]
[-NoDefaultStyles]
[-OutputPath <String>]
[-PassThru]
[-Password <String>]
[-Path] <String>
[-Profile <SemanticTables|VisualReview>]
[-Theme <OfficeVisualThemeKind>]
[-Title <String>]
[<CommonParameters>]
```

[#](#method-convertto-officeexcelhtml-string-int32-switchparameter-string-switchparameter-string-string-officeexcelhtmlprofile-officevisualthemekind-string)

Parameter set: `Path`

```
ConvertTo-OfficeExcelHtml
[-EmptyCellText <String>]
[-MaxRowsPerSheet <Int32>]
[-NoDefaultStyles]
[-OutputPath <String>]
[-PassThru]
[-Profile <SemanticTables|VisualReview>]
[-Theme <OfficeVisualThemeKind>]
[-Title <String>]
-Workbook <ExcelDocument>
[<CommonParameters>]
```

[#](#method-convertto-officeexcelhtml-string-int32-switchparameter-string-switchparameter-officeexcelhtmlprofile-officevisualthemekind-string-exceldocument)

Parameter set: `Workbook`

## Examples

### Export a workbook as semantic HTML.

```powershell
ConvertTo-OfficeExcelHtml -Path .\Report.xlsx -OutputPath .\Report.html -Title 'Workbook Review' -PassThru
```

Loads the workbook and writes an HTML file with tables, formulas, comments, charts, and image inventory where available.

### Export a visual review artifact.

```powershell
ConvertTo-OfficeExcelHtml -Path .\Report.xlsx -Profile VisualReview -OutputPath .\Report.visual.html
```

Uses the OfficeIMO Excel visual review profile.

## Parameters

**-EmptyCellText String optional**

Text used for empty cells in semantic table output.

**-MaxRowsPerSheet Int32 optional**

Maximum number of used rows to emit per worksheet.

**-NoDefaultStyles SwitchParameter optional**

Do not include OfficeIMO default CSS styles.

**-OutputPath String optionalaliases: OutPath**

Optional output HTML path. When omitted, HTML text is returned.

**-PassThru SwitchParameter optional**

Emit a FileInfo when saving to disk.

**-Password String optionalsets: Path**

Password used to open an encrypted workbook package.

**-Path String requiredposition: 0pipeline: True (ByValue)aliases: FilePathsets: Path**

Path to the workbook to convert.

**-Profile OfficeExcelHtmlProfile optional**

HTML conversion profile.

Possible values: `SemanticTables`, `VisualReview`

**-Theme OfficeVisualThemeKind optional**

Built-in HTML document theme.

Possible values: `Plain`, `WordLike`, `TechnicalDocument`, `GitHubLike`, `Compact`, `Report`

**-Title String optional**

Optional HTML document title.

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

Workbook instance to convert.

## 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:21729F15E904D07E3D9986EF51AFC514E57B2316FA80F15BD190AC46DFBA6232 -->
