# Add-OfficeWordHyperlink

Adds a hyperlink to the current Word paragraph. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

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

**Module**

`PSWriteOffice`

**Aliases**

`WordHyperlink`

**Inputs**

`OfficeIMO.Word.WordParagraph`

**Outputs**

`OfficeIMO.Word.WordHyperLink`

**Source**

[AddOfficeWordHyperlinkCommand.cs:18](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/AddOfficeWordHyperlinkCommand.cs#L18) 

Adds a hyperlink to the current Word paragraph.

## Syntax

```
Add-OfficeWordHyperlink
[-NoHistory]
[-PassThru]
[-Styled]
[-Text] <String>
[-Tooltip <String>]
-Url <String>
[<CommonParameters>]
```

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

Parameter set: `ContextUrl`

```
Add-OfficeWordHyperlink
[-NoHistory]
-Paragraph <WordParagraph>
[-PassThru]
[-Styled]
[-Text] <String>
[-Tooltip <String>]
-Url <String>
[<CommonParameters>]
```

[#](#method-add-officewordhyperlink-switchparameter-wordparagraph-switchparameter-switchparameter-string-string-string)

Parameter set: `ParagraphUrl`

```
Add-OfficeWordHyperlink
-Anchor <String>
[-NoHistory]
-Paragraph <WordParagraph>
[-PassThru]
[-Styled]
[-Text] <String>
[-Tooltip <String>]
[<CommonParameters>]
```

[#](#method-add-officewordhyperlink-string-switchparameter-wordparagraph-switchparameter-switchparameter-string-string)

Parameter set: `ParagraphAnchor`

```
Add-OfficeWordHyperlink
-Anchor <String>
[-NoHistory]
[-PassThru]
[-Styled]
[-Text] <String>
[-Tooltip <String>]
[<CommonParameters>]
```

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

Parameter set: `ContextAnchor`

## Examples

### Add an external hyperlink.

```powershell
Add-OfficeWordParagraph { Add-OfficeWordHyperlink -Text 'Example' -Url 'https://example.org' -Styled }
```

Creates a styled external hyperlink in the active paragraph.

## Parameters

**-NoHistory SwitchParameter optional**

Do not mark the hyperlink in navigation history.

**-PassThru SwitchParameter optional**

Emit the created hyperlink.

**-Styled SwitchParameter optional**

Apply the built-in hyperlink style.

**-Text String requiredposition: 0**

Displayed hyperlink text.

**-Tooltip String optional**

Optional hyperlink tooltip.

**-Url String requiredaliases: Urisets: ContextUrl, ParagraphUrl**

External hyperlink URL.

**-Paragraph WordParagraph requiredpipeline: True (ByValue)sets: ParagraphUrl, ParagraphAnchor**

Paragraph to update outside the DSL context.

**-Anchor String requiredaliases: Bookmarksets: ParagraphAnchor, ContextAnchor**

Bookmark anchor target within the document.

## 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:91D9BDD39C19D42633E7585832F475889BFB13D03E7A12F93B343B2172D31614 -->
