# Get-OfficeExcelTemplateMarker

Lists template markers and, with -Value, which are bound.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Excel.ExcelDocument` `System.String[]`

**Source**

[GetOfficeExcelTemplateMarkerCommand.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelTemplateMarkerCommand.cs#L27) 

Lists template markers and, with -Value, which are bound.

## Syntax

```
Get-OfficeExcelTemplateMarker
[-Document <ExcelDocument>]
[-MissingOnly]
[-Sheet <OfficeSheetSelector[]>]
[-Value <Hashtable>]
[<CommonParameters>]
```

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

Parameter set: `Document`

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

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

Parameter set: `Path`

```
Get-OfficeExcelTemplateMarker
-LiteralPath <String[]>
[-MissingOnly]
[-Sheet <OfficeSheetSelector[]>]
[-Value <Hashtable>]
[<CommonParameters>]
```

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

Parameter set: `LiteralPath`

## Examples

### List the markers in a template

```powershell
Get-OfficeExcelTemplateMarker -Path .\Templates\Service-Report.xltx
```

Shows every {{Marker}} in the template with its sheet and cell.

### Find markers your data does not fill

```powershell
$values = @{ Client = 'Northwind Traders'; Month = 'October 2026' }
Get-OfficeExcelTemplateMarker -Path .\Templates\Service-Report.xltx -Value $values -MissingOnly |
    Select-Object SheetName, CellReference, Name
```

Compares the template with the values a script is about to supply and lists only the markers that would stay unfilled.

## Parameters

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

Caller-owned workbook; omission uses the enclosing Excel content block.

**-MissingOnly SwitchParameter optional**

Only returns markers that are not supplied by -Value.

**-Sheet OfficeSheetSelector[] optionalaliases: WorksheetName**

Worksheet name, one-based position or native worksheet object. Multi-sheet commands also accept wildcard names.

**-Value Hashtable optional**

Value or values consumed by the selected operation.

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

Workbook paths resolved with filesystem wildcard support.

**-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath**

Literal workbook paths, including FileInfo.FullName and provider PSPath.

## 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).

<!-- PowerForge markdown artifact sha256:320D943A1A94F56441C059B2B95EE69ADE3C56479BB54D65D5313E3D4CDE8B24 -->
