I have this code, I dont know how to debug it. It always show Invalid procedure call or argument.
Sub Sumif()
Wk = ThisWorkbook.Name
Call Lastrowssub2
Workbooks(Wk).Worksheets("U-Main").Range("G11") = Application.WorksheetFunction.Sumif(Sheets("U-Detail").Range("J11:J" & LastRows)...