mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-10 13:23:29 +00:00
Use explicit parameter names
This commit is contained in:
@@ -2,6 +2,6 @@ Import-Module $PSScriptRoot\..\..\ImportExcel.psd1 -Force
|
|||||||
|
|
||||||
$xlfile = "$PSScriptRoot\yearlySales.xlsx"
|
$xlfile = "$PSScriptRoot\yearlySales.xlsx"
|
||||||
|
|
||||||
$result = Import-Excel $xlfile * -NotAsDictionary
|
$result = Import-Excel -Path $xlfile -WorksheetName * -NotAsDictionary
|
||||||
|
|
||||||
$result | Measure-Object
|
$result | Measure-Object
|
||||||
@@ -2,7 +2,7 @@ Import-Module $PSScriptRoot\..\..\ImportExcel.psd1 -Force
|
|||||||
|
|
||||||
$xlfile = "$PSScriptRoot\yearlySales.xlsx"
|
$xlfile = "$PSScriptRoot\yearlySales.xlsx"
|
||||||
|
|
||||||
$result = Import-Excel $xlfile *
|
$result = Import-Excel -Path $xlfile -WorksheetName *
|
||||||
|
|
||||||
foreach ($sheet in $result.Values) {
|
foreach ($sheet in $result.Values) {
|
||||||
$sheet
|
$sheet
|
||||||
|
|||||||
Reference in New Issue
Block a user