Hello,
Whats wrong with my sumif function?
Sub update2()Dim x As Workbook
Dim y As Workbook
ImportDir1 = Trim(Sheets("Control").Range("H6").Value)
Application.DisplayAlerts = False
Set x = Workbooks.Open(ImportDir1 & "\" & Sheets("Control").Range("C6").Value & ".xlsx")
With x.Sheets(1)...