Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Set-OfficeExcelHostHyperlink

Aliases: ExcelHyperlinkHost
Namespace PSWriteOffice
Aliases
ExcelHyperlinkHost
Inputs
OfficeIMO.Excel.ExcelDocument

Sets an external hyperlink that displays only the URL host.

Remarks

Sets an external hyperlink that displays only the URL host.

Examples

Authored help example

Link to Microsoft Docs using host-only display text.

PS>


ExcelSheet 'Data' { Set-OfficeExcelHostHyperlink -Address 'B2' -Url 'https://learn.microsoft.com/office/open-xml/' }
        

Creates a hyperlink that displays learn.microsoft.com.

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.

Syntax