Added missing " || improved readability.

This commit is contained in:
Davis Henckel
2021-11-28 11:25:21 -08:00
parent 8268bbc2e1
commit 56e1704e7e
2 changed files with 4 additions and 2 deletions

View File

@@ -2,5 +2,5 @@
Use an empty string to export to an excel file. Use an empty string to export to an excel file.
```powershell ```powershell
#Build an Excel file named: "file.xlsx" containing a worksheet: "MyWorksheet" #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"
``` ```

View File

@@ -30,7 +30,9 @@ Sometimes mapping to a Hashtable is more convenient to have access to common Has
```powershell ```powershell
$HashTable = @{} $HashTable = @{}
$SpecificRow= $ExcelFile[2] $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: To then iterate through the enumerated Hashtable:
```powershell ```powershell