Cmdlet
Set-OfficeExcelUrlLinks
Converts cells in a range into external URL hyperlinks.
Syntax
Set-OfficeExcelUrlLinks
[-NoStyle]
[-PassThru]
[-Range] <String>
[-TitleScript <ScriptBlock>]
-UrlScript <ScriptBlock>
[<CommonParameters>]#Parameter set:
ContextSet-OfficeExcelUrlLinks
-Document <ExcelDocument>
[-NoStyle]
[-PassThru]
[-Range] <String>
[-Sheet <String>]
[-SheetIndex <Int32>]
[-TitleScript <ScriptBlock>]
-UrlScript <ScriptBlock>
[<CommonParameters>]#Parameter set:
DocumentExamples
Link a summary range to RFC pages.
ExcelSheet 'Summary' { Set-OfficeExcelUrlLinks -Range 'D2:D10' -UrlScript { param($text) "https://datatracker.ietf.org/doc/html/$text" } }Turns each non-empty cell in D2:D10 into an external hyperlink.
Parameters
- -NoStyle SwitchParameter
- Skip hyperlink styling (blue + underline).
- -PassThru SwitchParameter
- Emit the worksheet after creating links.
- -Range String
- A1 range containing values to convert into external links.
- -TitleScript ScriptBlock
- Optional mapping from cell text to display text.
- -UrlScript ScriptBlock
- Maps the cell text to a URL.
- -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.