| external help file | PSWriteOffice-help.xml |
|---|---|
| Module Name | PSWriteOffice |
| online version | https://github.com/EvotecIT/PSWriteOffice |
| schema | 2.0.0 |
Creates or updates a named range.
Set-OfficeExcelNamedRange [-Name] <string> [-Range] <string> [-Hidden] [-ValidationMode <NameValidationMode>] [-Global] [-Save] [-PassThru] [<CommonParameters>]Set-OfficeExcelNamedRange [-Name] <string> [-Range] <string> -Document <ExcelDocument> [-Sheet <string>] [-SheetIndex <int>] [-Hidden] [-ValidationMode <NameValidationMode>] [-Save] [-PassThru] [<CommonParameters>]Creates or updates a named range.
PS>ExcelSheet 'Data' { Set-OfficeExcelNamedRange -Name 'Totals' -Range 'B2:B50' }Creates a sheet-scoped name for the range.
Workbook to operate on outside the DSL context.
Type: ExcelDocument
Parameter Sets: Document
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: TrueForce a workbook-global name even inside a sheet block.
Type: SwitchParameter
Parameter Sets: Context
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True-Hidden
Mark the defined name as hidden.
Type: SwitchParameter
Parameter Sets: Context, Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueName of the defined range.
Type: String
Parameter Sets: Context, Document
Aliases: None
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueEmit the name after creation.
Type: SwitchParameter
Parameter Sets: Context, Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueRange in A1 notation.
Type: String
Parameter Sets: Context, Document
Aliases: None
Possible values:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueSave the workbook immediately after setting the name.
Type: SwitchParameter
Parameter Sets: Context, Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWorksheet name when using Document.
Type: String
Parameter Sets: Document
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: Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueValidate or sanitize the defined name.
Type: NameValidationMode
Parameter Sets: Context, Document
Aliases: None
Possible values: Sanitize, Strict
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
System.Object
- None