# Add-OfficeExcelTimeline

Adds OfficeIMO-owned workbook timeline binding metadata.

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

**Module**

`PSWriteOffice`

**Aliases**

`ExcelTimeline`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`System.Management.Automation.PSObject`

**Source**

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

Adds OfficeIMO-owned workbook timeline binding metadata.

## Syntax

```
Add-OfficeExcelTimeline
-Name <String>
[-PassThru]
[-PivotTableName <String>]
[-SourceName <String>]
[-Xml <String>]
[<CommonParameters>]
```

[#](#method-add-officeexceltimeline-string-switchparameter-string-string-string)

Parameter set: `Context`

```
Add-OfficeExcelTimeline
-Name <String>
[-PassThru]
[-Path] <String>
[-PivotTableName <String>]
[-SourceName <String>]
[-Xml <String>]
[<CommonParameters>]
```

[#](#method-add-officeexceltimeline-string-switchparameter-string-string-string-string)

Parameter set: `Path`

```
Add-OfficeExcelTimeline
-Document <ExcelDocument>
-Name <String>
[-PassThru]
[-PivotTableName <String>]
[-SourceName <String>]
[-Xml <String>]
[<CommonParameters>]
```

[#](#method-add-officeexceltimeline-exceldocument-string-switchparameter-string-string-string)

Parameter set: `Document`

## Examples

### Add timeline binding metadata for a pivot date field.

```powershell
$timeline = Add-OfficeExcelTimeline -Path .\Report.xlsx -Name OrderDateTimeline -SourceName OrderDate -PivotTableName SalesPivot -PassThru
Get-OfficeExcelDataModel -Path .\Report.xlsx |
    Select-Object -ExpandProperty TimelineCacheCount
```

Writes portable OfficeIMO binding metadata. It does not create native Excel timeline caches or UI shapes.

## Parameters

**-Name String required**

Timeline cache name.

**-PassThru SwitchParameter optional**

Emit metadata about the added package part.

**-PivotTableName String optional**

Pivot table name the timeline is intended to filter.

**-SourceName String optional**

Source date field, table column, or pivot field name.

**-Xml String optional**

Caller-supplied timeline cache XML. When provided, OfficeIMO preserves it within its pivot-interaction metadata envelope.

**-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:0D17DC81C324D75D0971A8312A3C42963F7E4A59DB451DBCEA1817B056A5EA25 -->
