| external help file | PSWriteOffice-help.xml |
|---|---|
| Module Name | PSWriteOffice |
| online version | https://github.com/EvotecIT/PSWriteOffice |
| schema | 2.0.0 |
Reads the used range from an Excel workbook.
Get-OfficeExcelUsedRange [-InputPath] <string> [-Sheet <string>] [-SheetIndex <int>] [-HeadersInFirstRow <bool>] [-NumericAsDecimal] [-AsHashtable] [-AsDataTable] [<CommonParameters>]Get-OfficeExcelUsedRange -Document <ExcelDocument> [-Sheet <string>] [-SheetIndex <int>] [-HeadersInFirstRow <bool>] [-NumericAsDecimal] [-AsHashtable] [-AsDataTable] [<CommonParameters>]Reads the used range from an Excel workbook.
PS>Get-OfficeExcelUsedRange -Path .\report.xlsx -Sheet 'Data'Reads the sheet's used range, treating the first row as headers.
Emit the raw DataTable instead of row objects.
Type: SwitchParameter
Parameter Sets: Path, Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueEmit rows as hashtables instead of PSCustomObjects.
Type: SwitchParameter
Parameter Sets: Path, Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWorkbook to inspect.
Type: ExcelDocument
Parameter Sets: Document
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: TrueUse the first row as column headers.
Type: Boolean
Parameter Sets: Path, Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePath to the workbook.
Type: String
Parameter Sets: Path
Aliases: FilePath, Path
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePrefer decimals instead of doubles for numeric values.
Type: SwitchParameter
Parameter Sets: Path, Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWorksheet name to read; defaults to the first sheet.
Type: String
Parameter Sets: Path, Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueZero-based worksheet index to read; defaults to the first sheet.
Type: Nullable`1
Parameter Sets: Path, Document
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
System.Management.Automation.PSObject System.Collections.Hashtable System.Data.DataTable
- None