From 21108f51369be9ab1308eecdae09d126ba681d22 Mon Sep 17 00:00:00 2001 From: jhoneill Date: Thu, 3 May 2018 17:12:20 +0100 Subject: [PATCH] fat fingers ! --- compare-WorkSheet.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compare-WorkSheet.ps1 b/compare-WorkSheet.ps1 index 92a19c8..8ee571e 100644 --- a/compare-WorkSheet.ps1 +++ b/compare-WorkSheet.ps1 @@ -112,7 +112,7 @@ #Get Column headings and create a hash table of Name to column letter. $headings = $Sheet1[-1].psobject.Properties.name # This preserves the sequence - using get-member would sort them alphabetically! - $headings | ForEach-Object -Begin {$columns = @{} ; } -Process {$Columns[$_] = [char]($i ++) } + $headings | ForEach-Object -Begin {$columns = @{} ; $i=65 } -Process {$Columns[$_] = [char]($i ++) } #Make a list of property headings using the Property (default "*") and ExcludeProperty parameters if ($Key -eq "Name" -and $NoHeader) {$key = "p1"}