Cmdlet
Set-OfficeExcelInternalLinks
Converts cells in a range into internal workbook links.
Syntax
Set-OfficeExcelInternalLinks
[-DestinationSheetScript <ScriptBlock>]
[-DisplayScript <ScriptBlock>]
[-NoStyle]
[-PassThru]
[-Range] <String>
[-TargetAddress <String>]
[<CommonParameters>]#Parameter set:
ContextSet-OfficeExcelInternalLinks
[-DestinationSheetScript <ScriptBlock>]
[-DisplayScript <ScriptBlock>]
-Document <ExcelDocument>
[-NoStyle]
[-PassThru]
[-Range] <String>
[-Sheet <String>]
[-SheetIndex <Int32>]
[-TargetAddress <String>]
[<CommonParameters>]#Parameter set:
DocumentExamples
Link a summary range to same-named sheets.
ExcelSheet 'Summary' { Set-OfficeExcelInternalLinks -Range 'A2:A10' }Turns each non-empty cell in A2:A10 into an internal link to the sheet with the same name.
Parameters
- -DestinationSheetScript ScriptBlock
- Optional mapping from cell text to destination sheet name.
- -DisplayScript ScriptBlock
- Optional mapping from cell text to display text.
- -NoStyle SwitchParameter
- Skip hyperlink styling (blue + underline).
- -PassThru SwitchParameter
- Emit the worksheet after creating links.
- -Range String
- A1 range containing values to convert into internal links.
- -TargetAddress String
- Destination cell on the target sheet.
- -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.