OfficeIMO

API Reference

Command

Set-OfficeExcelInternalLinksByHeader

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

Converts cells under a header into internal workbook links.

Remarks

Converts cells under a header into internal workbook links.

Examples

Link the Sheet column in the used range.


PS>ExcelSheet 'Summary' { Set-OfficeExcelInternalLinksByHeader -Header 'Sheet' }
        

Uses the used range header row to find the Sheet column and converts its values into internal links.

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-OfficeExcelInternalLinksByHeader [-DestinationSheetScript <ScriptBlock>] [-DisplayScript <ScriptBlock>] -Header <String> [-NoStyle] [-PassThru] [-TargetAddress <String>] [<CommonParameters>]
#
Parameter set: ContextUsedRange

Parameters

DestinationSheetScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to destination sheet name.
DisplayScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
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.
TargetAddress String optionalposition: namedpipeline: False
Destination cell on the target sheet.

Outputs

OfficeIMO.Excel.ExcelSheet

Set-OfficeExcelInternalLinksByHeader [-DestinationSheetScript <ScriptBlock>] [-DisplayScript <ScriptBlock>] -Document <ExcelDocument> -Header <String> [-NoStyle] [-PassThru] [-Sheet <String>] [-SheetIndex <Nullable`1>] [-TargetAddress <String>] [<CommonParameters>]
#
Parameter set: DocumentUsedRange

Parameters

DestinationSheetScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to destination sheet name.
DisplayScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
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.
TargetAddress String optionalposition: namedpipeline: False
Destination cell on the target sheet.

Outputs

OfficeIMO.Excel.ExcelSheet

Set-OfficeExcelInternalLinksByHeader [-DestinationSheetScript <ScriptBlock>] [-DisplayScript <ScriptBlock>] -Document <ExcelDocument> -Header <String> [-NoStyle] [-PassThru] [-Sheet <String>] [-SheetIndex <Nullable`1>] -TableName <String> [-TargetAddress <String>] [<CommonParameters>]
#
Parameter set: DocumentTable

Parameters

DestinationSheetScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to destination sheet name.
DisplayScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
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.
TargetAddress String optionalposition: namedpipeline: False
Destination cell on the target sheet.

Outputs

OfficeIMO.Excel.ExcelSheet

Set-OfficeExcelInternalLinksByHeader [-DestinationSheetScript <ScriptBlock>] [-DisplayScript <ScriptBlock>] -Document <ExcelDocument> -Header <String> [-NoStyle] [-PassThru] -Range <String> [-Sheet <String>] [-SheetIndex <Nullable`1>] [-TargetAddress <String>] [<CommonParameters>]
#
Parameter set: DocumentRange

Parameters

DestinationSheetScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to destination sheet name.
DisplayScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
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.
TargetAddress String optionalposition: namedpipeline: False
Destination cell on the target sheet.

Outputs

OfficeIMO.Excel.ExcelSheet

Set-OfficeExcelInternalLinksByHeader [-DestinationSheetScript <ScriptBlock>] [-DisplayScript <ScriptBlock>] -Header <String> [-NoStyle] [-PassThru] -TableName <String> [-TargetAddress <String>] [<CommonParameters>]
#
Parameter set: ContextTable

Parameters

DestinationSheetScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to destination sheet name.
DisplayScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
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.
TargetAddress String optionalposition: namedpipeline: False
Destination cell on the target sheet.

Outputs

OfficeIMO.Excel.ExcelSheet

Set-OfficeExcelInternalLinksByHeader [-DestinationSheetScript <ScriptBlock>] [-DisplayScript <ScriptBlock>] -Header <String> [-NoStyle] [-PassThru] -Range <String> [-TargetAddress <String>] [<CommonParameters>]
#
Parameter set: ContextRange

Parameters

DestinationSheetScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to destination sheet name.
DisplayScript ScriptBlock optionalposition: namedpipeline: False
Optional mapping from cell text to display text.
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.
TargetAddress String optionalposition: namedpipeline: False
Destination cell on the target sheet.

Outputs

OfficeIMO.Excel.ExcelSheet