mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Added missing " || improved readability.
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
Use an empty string to export to an excel file.
|
||||
```powershell
|
||||
#Build an Excel file named: "file.xlsx" containing a worksheet: "MyWorksheet"
|
||||
"" | Export-Excel -Path "C:\Test\file.xlsx -WorksheetName "MyWorksheet"
|
||||
"" | Export-Excel -Path "C:\Test\file.xlsx" -WorksheetName "MyWorksheet"
|
||||
```
|
||||
|
||||
@@ -30,7 +30,9 @@ Sometimes mapping to a Hashtable is more convenient to have access to common Has
|
||||
```powershell
|
||||
$HashTable = @{}
|
||||
$SpecificRow= $ExcelFile[2]
|
||||
$SpecificRow.psobject.properties | ForEach-Object {$HashTable[$_.Name] = $_.Value}
|
||||
$SpecificRow.psobject.properties | ForEach-Object {
|
||||
$HashTable[$_.Name] = $_.Value
|
||||
}
|
||||
```
|
||||
To then iterate through the enumerated Hashtable:
|
||||
```powershell
|
||||
|
||||
Reference in New Issue
Block a user