API Reference

Cmdlet

Set-OfficeExcelHyperlink

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

Sets a hyperlink on a worksheet cell.

Remarks

Sets a hyperlink on a worksheet cell.

Examples

Authored help example

Example 1: Set an external hyperlink.

PS>


ExcelSheet 'Data' { Set-OfficeExcelHyperlink -Address 'A1' -Url 'https://example.org' -Display 'Example' }
        

Creates a styled hyperlink in A1.

Example 2: Set an internal hyperlink.

PS>


ExcelSheet 'Data' { Set-OfficeExcelHyperlink -Row 2 -Column 1 -TargetSheet 'Summary' -TargetAddress 'A1' -Display 'Go to Summary' }
        

Links A2 to Summary!A1.

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