add example for importing an xlsx and multiple sheets

This commit is contained in:
dfinke
2022-04-30 07:59:22 -04:00
parent 634aaacc55
commit b2119f08f5
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
Import-Module $PSScriptRoot\..\..\ImportExcel.psd1 -Force
$xlfile = "$PSScriptRoot\yearlySales.xlsx"
$result = Import-Excel $xlfile *
foreach ($sheet in $result.Values) {
$sheet
}