# Get-OfficeExcelRichText

Gets mixed-format rich text runs from an Excel cell.

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

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: ExcelRichTextRuns

**Module**

`PSWriteOffice`

**Aliases**

`ExcelRichTextRuns`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`System.Management.Automation.PSObject`

**Source**

[GetOfficeExcelRichTextCommand.cs:19](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelRichTextCommand.cs#L19) 

Gets mixed-format rich text runs from an Excel cell.

## Syntax

```
Get-OfficeExcelRichText
[-Address <String>]
[-Column <Int32>]
[-Row <Int32>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-get-officeexcelrichtext-string-int32-int32-string-int32)

Parameter set: `Context`

```
Get-OfficeExcelRichText
[-Address <String>]
[-Column <Int32>]
[-Path] <String>
[-Row <Int32>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-get-officeexcelrichtext-string-int32-string-int32-string-int32)

Parameter set: `Path`

```
Get-OfficeExcelRichText
[-Address <String>]
[-Column <Int32>]
-Document <ExcelDocument>
[-Row <Int32>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-get-officeexcelrichtext-string-int32-exceldocument-int32-string-int32)

Parameter set: `Document`

## Examples

### Inspect rich text runs from a workbook.

```powershell
$runs = Get-OfficeExcelRichText -Path .\Report.xlsx -Sheet Summary -Address A1
$runs |
    Format-Table Index, Text, Bold, Italic, Color
```

Returns one object per inline rich text run with text and style properties.

## Parameters

**-Address String optional**

A1-style cell address.

**-Column Int32 optional**

1-based column index.

**-Row Int32 optional**

1-based row index.

**-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 inspect.

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

Workbook to inspect 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:D9B5E298BA9C53F2354A2FB307867B3752D87309919BE11A693C600382FBC03B -->
