OfficeIMO

API Reference

Command

Set-OfficeExcelUrlLinksByHeader

Namespace PSWriteOffice
Inputs
OfficeIMO.Excel.ExcelDocument
Outputs
OfficeIMO.Excel.ExcelSheet

Converts cells under a header into external URL hyperlinks.

Remarks

Converts cells under a header into external URL hyperlinks.

Examples

Link the RFC column in a table.


PS>ExcelSheet 'Summary' { Set-OfficeExcelUrlLinksByHeader -Header 'RFC' -TableName 'Links' -UrlScript { param($text) "https://datatracker.ietf.org/doc/html/$text" } }
        

Uses the RFC column values to create external hyperlinks.

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

Set-OfficeExcelUrlLinksByHeader -Header <String> [-NoStyle] [-PassThru] [-TitleScript <ScriptBlock>] -UrlScript <ScriptBlock> [<CommonParameters>]
#
Parameter set: ContextUsedRange

Parameters

Header String requiredposition: 0pipeline: False
Header text to locate.
NoStyle SwitchParameter optionalposition: namedpipeline: False
Skip hyperlink styling (blue + underline).
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the worksheet after creating links.
TitleScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
UrlScript ScriptBlock requiredposition: namedpipeline: False
Maps the cell text to a URL.

Outputs

OfficeIMO.Excel.ExcelSheet

Set-OfficeExcelUrlLinksByHeader -Document <ExcelDocument> -Header <String> [-NoStyle] [-PassThru] [-Sheet <String>] [-SheetIndex <Nullable`1>] [-TitleScript <ScriptBlock>] -UrlScript <ScriptBlock> [<CommonParameters>]
#
Parameter set: DocumentUsedRange

Parameters

Document ExcelDocument requiredposition: namedpipeline: True (ByValue)
Workbook to operate on outside the DSL context.
Header String requiredposition: 0pipeline: False
Header text to locate.
NoStyle SwitchParameter optionalposition: namedpipeline: False
Skip hyperlink styling (blue + underline).
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the worksheet after creating links.
Sheet String optionalposition: namedpipeline: False
Worksheet name when using Document.
SheetIndex Nullable`1 optionalposition: namedpipeline: False
Worksheet index (0-based) when using Document.
TitleScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
UrlScript ScriptBlock requiredposition: namedpipeline: False
Maps the cell text to a URL.

Outputs

OfficeIMO.Excel.ExcelSheet

Set-OfficeExcelUrlLinksByHeader -Document <ExcelDocument> -Header <String> [-NoStyle] [-PassThru] [-Sheet <String>] [-SheetIndex <Nullable`1>] -TableName <String> [-TitleScript <ScriptBlock>] -UrlScript <ScriptBlock> [<CommonParameters>]
#
Parameter set: DocumentTable

Parameters

Document ExcelDocument requiredposition: namedpipeline: True (ByValue)
Workbook to operate on outside the DSL context.
Header String requiredposition: 0pipeline: False
Header text to locate.
NoStyle SwitchParameter optionalposition: namedpipeline: False
Skip hyperlink styling (blue + underline).
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the worksheet after creating links.
Sheet String optionalposition: namedpipeline: False
Worksheet name when using Document.
SheetIndex Nullable`1 optionalposition: namedpipeline: False
Worksheet index (0-based) when using Document.
TableName String requiredposition: namedpipeline: False
Restrict linking to a named table.
TitleScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
UrlScript ScriptBlock requiredposition: namedpipeline: False
Maps the cell text to a URL.

Outputs

OfficeIMO.Excel.ExcelSheet

Set-OfficeExcelUrlLinksByHeader -Document <ExcelDocument> -Header <String> [-NoStyle] [-PassThru] -Range <String> [-Sheet <String>] [-SheetIndex <Nullable`1>] [-TitleScript <ScriptBlock>] -UrlScript <ScriptBlock> [<CommonParameters>]
#
Parameter set: DocumentRange

Parameters

Document ExcelDocument requiredposition: namedpipeline: True (ByValue)
Workbook to operate on outside the DSL context.
Header String requiredposition: 0pipeline: False
Header text to locate.
NoStyle SwitchParameter optionalposition: namedpipeline: False
Skip hyperlink styling (blue + underline).
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the worksheet after creating links.
Range String requiredposition: namedpipeline: False
Restrict linking to a specific A1 range whose first row contains headers.
Sheet String optionalposition: namedpipeline: False
Worksheet name when using Document.
SheetIndex Nullable`1 optionalposition: namedpipeline: False
Worksheet index (0-based) when using Document.
TitleScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
UrlScript ScriptBlock requiredposition: namedpipeline: False
Maps the cell text to a URL.

Outputs

OfficeIMO.Excel.ExcelSheet

Set-OfficeExcelUrlLinksByHeader -Header <String> [-NoStyle] [-PassThru] -TableName <String> [-TitleScript <ScriptBlock>] -UrlScript <ScriptBlock> [<CommonParameters>]
#
Parameter set: ContextTable

Parameters

Header String requiredposition: 0pipeline: False
Header text to locate.
NoStyle SwitchParameter optionalposition: namedpipeline: False
Skip hyperlink styling (blue + underline).
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the worksheet after creating links.
TableName String requiredposition: namedpipeline: False
Restrict linking to a named table.
TitleScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
UrlScript ScriptBlock requiredposition: namedpipeline: False
Maps the cell text to a URL.

Outputs

OfficeIMO.Excel.ExcelSheet

Set-OfficeExcelUrlLinksByHeader -Header <String> [-NoStyle] [-PassThru] -Range <String> [-TitleScript <ScriptBlock>] -UrlScript <ScriptBlock> [<CommonParameters>]
#
Parameter set: ContextRange

Parameters

Header String requiredposition: 0pipeline: False
Header text to locate.
NoStyle SwitchParameter optionalposition: namedpipeline: False
Skip hyperlink styling (blue + underline).
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the worksheet after creating links.
Range String requiredposition: namedpipeline: False
Restrict linking to a specific A1 range whose first row contains headers.
TitleScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
UrlScript ScriptBlock requiredposition: namedpipeline: False
Maps the cell text to a URL.

Outputs

OfficeIMO.Excel.ExcelSheet