Cmdlet
Set-OfficeExcelSmartHyperlink
Sets an external hyperlink using a smart display strategy.
Syntax
Set-OfficeExcelSmartHyperlink
[-Address <String>]
[-Column <Int32>]
[-NoStyle]
[-PassThru]
[-Row <Int32>]
[-Title <String>]
[-Url] <String>
[<CommonParameters>]#Parameter set:
ContextSet-OfficeExcelSmartHyperlink
[-Address <String>]
[-Column <Int32>]
-Document <ExcelDocument>
[-NoStyle]
[-PassThru]
[-Row <Int32>]
[-Sheet <String>]
[-SheetIndex <Int32>]
[-Title <String>]
[-Url] <String>
[<CommonParameters>]#Parameter set:
DocumentExamples
Link to an RFC with generated display text.
ExcelSheet 'Data' { Set-OfficeExcelSmartHyperlink -Address 'A2' -Url 'https://datatracker.ietf.org/doc/html/rfc7208' }Creates a hyperlink that displays RFC 7208 instead of the full URL.
Parameters
- -Address String
- A1-style cell address (e.g., A1, C5).
- -Column Int32
- 1-based column index.
- -NoStyle SwitchParameter
- Skip hyperlink styling (blue + underline).
- -PassThru SwitchParameter
- Emit the worksheet after setting the link.
- -Row Int32
- 1-based row index.
- -Title String
- Optional preferred display text.
- -Url String
- External URL to link to.
- -Document ExcelDocument
- Workbook to operate on outside the DSL context.
- -Sheet String
- Worksheet name when using Document.
- -SheetIndex Int32
- Worksheet index (0-based) when using 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.