| external help file | PSWriteOffice-help.xml |
|---|---|
| Module Name | PSWriteOffice |
| online version | https://github.com/EvotecIT/PSWriteOffice |
| schema | 2.0.0 |
Converts cells under a header into internal workbook links.
Set-OfficeExcelInternalLinksByHeader [-Header] <string> [-DestinationSheetScript <scriptblock>] [-DisplayScript <scriptblock>] [-TargetAddress <string>] [-NoStyle] [-PassThru] [<CommonParameters>]Set-OfficeExcelInternalLinksByHeader [-Header] <string> -Document <ExcelDocument> [-Sheet <string>] [-SheetIndex <int>] [-DestinationSheetScript <scriptblock>] [-DisplayScript <scriptblock>] [-TargetAddress <string>] [-NoStyle] [-PassThru] [<CommonParameters>]Set-OfficeExcelInternalLinksByHeader [-Header] <string> -Document <ExcelDocument> -TableName <string> [-Sheet <string>] [-SheetIndex <int>] [-DestinationSheetScript <scriptblock>] [-DisplayScript <scriptblock>] [-TargetAddress <string>] [-NoStyle] [-PassThru] [<CommonParameters>]Set-OfficeExcelInternalLinksByHeader [-Header] <string> -Document <ExcelDocument> -Range <string> [-Sheet <string>] [-SheetIndex <int>] [-DestinationSheetScript <scriptblock>] [-DisplayScript <scriptblock>] [-TargetAddress <string>] [-NoStyle] [-PassThru] [<CommonParameters>]Set-OfficeExcelInternalLinksByHeader [-Header] <string> -TableName <string> [-DestinationSheetScript <scriptblock>] [-DisplayScript <scriptblock>] [-TargetAddress <string>] [-NoStyle] [-PassThru] [<CommonParameters>]Set-OfficeExcelInternalLinksByHeader [-Header] <string> -Range <string> [-DestinationSheetScript <scriptblock>] [-DisplayScript <scriptblock>] [-TargetAddress <string>] [-NoStyle] [-PassThru] [<CommonParameters>]Converts cells under a header into internal workbook links.
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.
Optional mapping from cell text to destination sheet name.
Type: ScriptBlock
Parameter Sets: ContextUsedRange, DocumentUsedRange, DocumentTable, DocumentRange, ContextTable, ContextRange
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueOptional mapping from cell text to display text.
Type: ScriptBlock
Parameter Sets: ContextUsedRange, DocumentUsedRange, DocumentTable, DocumentRange, ContextTable, ContextRange
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWorkbook to operate on outside the DSL context.
Type: ExcelDocument
Parameter Sets: DocumentUsedRange, DocumentTable, DocumentRange
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: TrueHeader text to locate.
Type: String
Parameter Sets: ContextUsedRange, DocumentUsedRange, DocumentTable, DocumentRange, ContextTable, ContextRange
Aliases: None
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueSkip hyperlink styling (blue + underline).
Type: SwitchParameter
Parameter Sets: ContextUsedRange, DocumentUsedRange, DocumentTable, DocumentRange, ContextTable, ContextRange
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueEmit the worksheet after creating links.
Type: SwitchParameter
Parameter Sets: ContextUsedRange, DocumentUsedRange, DocumentTable, DocumentRange, ContextTable, ContextRange
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueRestrict linking to a specific A1 range whose first row contains headers.
Type: String
Parameter Sets: DocumentRange, ContextRange
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWorksheet name when using Document.
Type: String
Parameter Sets: DocumentUsedRange, DocumentTable, DocumentRange
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWorksheet index (0-based) when using Document.
Type: Nullable`1
Parameter Sets: DocumentUsedRange, DocumentTable, DocumentRange
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueRestrict linking to a named table.
Type: String
Parameter Sets: DocumentTable, ContextTable
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueDestination cell on the target sheet.
Type: String
Parameter Sets: ContextUsedRange, DocumentUsedRange, DocumentTable, DocumentRange, ContextTable, ContextRange
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
OfficeIMO.Excel.ExcelDocument
OfficeIMO.Excel.ExcelSheet
- None