# Get-OfficeExcelTemplateMarker

Lists Excel template markers such as {{Name}} and optionally shows whether supplied values bind to them.

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: ExcelTemplateMarkers

**Module**

`PSWriteOffice`

**Aliases**

`ExcelTemplateMarkers`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`System.Management.Automation.PSObject`

**Source**

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

Lists Excel template markers such as {{Name}} and optionally shows whether supplied values bind to them.

## Syntax

```
Get-OfficeExcelTemplateMarker
[-MissingOnly]
[-Sheet <String>]
[-SheetIndex <Int32>]
[-Value <Hashtable>]
[<CommonParameters>]
```

[#](#method-get-officeexceltemplatemarker-switchparameter-string-int32-hashtable)

Parameter set: `Context`

```
Get-OfficeExcelTemplateMarker
[-MissingOnly]
[-Path] <String>
[-Sheet <String>]
[-SheetIndex <Int32>]
[-Value <Hashtable>]
[<CommonParameters>]
```

[#](#method-get-officeexceltemplatemarker-switchparameter-string-string-int32-hashtable)

Parameter set: `Path`

```
Get-OfficeExcelTemplateMarker
-Document <ExcelDocument>
[-MissingOnly]
[-Sheet <String>]
[-SheetIndex <Int32>]
[-Value <Hashtable>]
[<CommonParameters>]
```

[#](#method-get-officeexceltemplatemarker-exceldocument-switchparameter-string-int32-hashtable)

Parameter set: `Document`

## Examples

### Inspect template markers before filling a workbook.

```powershell
Get-OfficeExcelTemplateMarker -Path .\Invoice.xlsx -Sheet Invoice -Value @{ Number = 'INV-001'; Total = 123.45 }
```

Returns one object per marker with address, format, and binding metadata.

## Parameters

**-MissingOnly SwitchParameter optional**

Only returns markers that are not supplied by -Value.

**-Sheet String optional**

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

**-SheetIndex Int32 optional**

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

**-Value Hashtable optionalaliases: Values**

Optional marker values used to report which markers are bound and which are still missing.

**-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:064E16A1020127C8C86A4F188F2DCE470F619FBAF1C3ED102068BE3E8F61F299 -->
