Hello weenie
Try this code in your xlsm file
Sub LoopCSVFiles()
Dim wbk As Workbook
Dim wsh As Worksheet
Dim found As Variant
Dim strFolder As String
Dim strFile As String
Dim rng As Range
Dim c As Long
Dim lc As Long
With Application
.ScreenUpdating = False
.Calculation = xlManual
.DisplayAlerts = False
.AskToUpdateLinks = False
End With
Set wsh = ThisWorkbook.Worksheets("column_headers")
Set rng = wsh.Columns(1)
'Change To Your Folder Path For CSV Files
strFolder = ThisWorkbook.Path & "\"
strFile = Dir(strFolder & "*.csv")
Do While strFile <> ""
Set wbk = Workbooks.Open(strFolder & strFile)
lc = wbk.Worksheets(1).Cells(1, Columns.Count).End(xlToLeft).Column
For c = 8 To lc
found = Application.Match(wbk.Worksheets(1).Cells(1, c).Value, rng, 0)
If Not IsError(found) Then
wbk.Worksheets(1).Cells(1, c).Value = wsh.Cells(found, 2).Value
End If
Next c
wbk.Close SaveChanges:=True
strFile = Dir
Loop
With Application
.AskToUpdateLinks = True
.DisplayAlerts = True
.Calculation = xlAutomatic
.ScreenUpdating = True
End With
MsgBox "Done...", 64
End Sub