mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-13 14:53:19 +00:00
tweaked spelling
This commit is contained in:
@@ -68,7 +68,7 @@
|
|||||||
# Check $ImportColumns
|
# Check $ImportColumns
|
||||||
if ($ImportColumns[0] -le 0) { throw "The first entry in ImportColumns must be equal or greater 1" ; return }
|
if ($ImportColumns[0] -le 0) { throw "The first entry in ImportColumns must be equal or greater 1" ; return }
|
||||||
# Check $StartColumn and $EndColumn
|
# Check $StartColumn and $EndColumn
|
||||||
if (($StartColumn -ne 1) -or ($EndColumn -ne $end)) { Write-Warning -Message "If ImportColumns is set than individual StartColumn and EndColumn will be ignored." }
|
if (($StartColumn -ne 1) -or ($EndColumn -ne $end)) { Write-Warning -Message "If ImportColumns is set, then individual StartColumn and EndColumn will be ignored." }
|
||||||
# Replace $Columns with $ImportColumns
|
# Replace $Columns with $ImportColumns
|
||||||
$Columns = $ImportColumns
|
$Columns = $ImportColumns
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
|
|
||||||
foreach ($C in $Columns) {
|
foreach ($C in $Columns) {
|
||||||
#allow "False" or "0" to be column headings
|
#allow "False" or "0" to be column headings
|
||||||
$Worksheet.Cells[$StartRow, $C] | Where-Object {-not [string]::IsNullOrEmpty($_.Value) } | Select-Object @{N = 'Column'; E = { $C } }, Value
|
$Worksheet.Cells[$StartRow, $C] | Where-Object { -not [string]::IsNullOrEmpty($_.Value) } | Select-Object @{N = 'Column'; E = { $C } }, Value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -196,7 +196,7 @@
|
|||||||
}
|
}
|
||||||
$TextColRegEx = New-Object -TypeName regex -ArgumentList $TextColExpression , 9
|
$TextColRegEx = New-Object -TypeName regex -ArgumentList $TextColExpression , 9
|
||||||
}
|
}
|
||||||
else {$TextColRegEx = $null}
|
else { $TextColRegEx = $null }
|
||||||
foreach ($R in $rows) {
|
foreach ($R in $rows) {
|
||||||
#Disabled write-verbose for speed
|
#Disabled write-verbose for speed
|
||||||
# Write-Verbose "Import row '$R'"
|
# Write-Verbose "Import row '$R'"
|
||||||
|
|||||||
Reference in New Issue
Block a user