Function getHeaderRowDict(sht) Dim rng As Excel.Range, dict As New Dictionary, i As Long Set rng = sht.Range("A1").CurrentRegion.Rows(1) For i = 1