Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Add-OfficeWordHyperlink

Aliases: WordHyperlink
Module
PSWriteOffice
Aliases
WordHyperlink
Inputs
OfficeIMO.Word.WordParagraph
Outputs
OfficeIMO.Word.WordHyperLink

Adds a hyperlink to the current Word paragraph.

Syntax

Examples

Add an external hyperlink.

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.