Cmdlet
Get-OfficeExcelValidation
Gets native data validation snapshots, with worksheet and source-path metadata.
Syntax
Get-OfficeExcelValidation
[-Document <ExcelDocument>]
[-Header <String>]
[-HeaderRow <Int32>]
[-IncludeHeader]
[-Range <String>]
[-Sheet <OfficeSheetSelector[]>]
[-Table <String>]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeExcelValidation
[-Header <String>]
[-HeaderRow <Int32>]
[-IncludeHeader]
[-Path] <String[]>
[-Range <String>]
[-Sheet <OfficeSheetSelector[]>]
[-Table <String>]
[<CommonParameters>]#Parameter set:
PathGet-OfficeExcelValidation
[-Header <String>]
[-HeaderRow <Int32>]
[-IncludeHeader]
-LiteralPath <String[]>
[-Range <String>]
[-Sheet <OfficeSheetSelector[]>]
[-Table <String>]
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Inspect rules for a named table column.
Get-OfficeExcelValidation -Path .\Report.xlsx -Sheet Data -Table Sales -Header StatusParameters
- -Document ExcelDocument
- Caller-owned workbook; omission uses the enclosing Excel content block.
- -Header String
- Header or table column name used to resolve the range filter.
- -HeaderRow Int32
- Worksheet header row; zero uses the first row of the used range.
- -IncludeHeader SwitchParameter
- Include the header cell when resolving a named column.
- -Range String
- A1 range filter; Header takes precedence when both are supplied.
- -Sheet OfficeSheetSelector[]
- Worksheet names, wildcard patterns, one-based positions or native worksheet objects.
- -Table String
- Table name for header-based range resolution.
- -Path String[]
- Workbook paths, including filesystem wildcard patterns.
- -LiteralPath String[]
- Literal workbook paths. FileInfo.FullName and provider PSPath bind here.
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.