I'm trying to basically translate a formula from excel into VBA. I'm using the SUMIFS() command and I have it referring to columns in an already established table. This is what I have so far but I keep getting an object error.
Cells(2, 14).Value = 60 * Application.WorksheetFunction.SumIfs([Hours],[Operators], [@Operators], [Forging], [@Forging], [Operation], [@Operation], [Job No], [@[Job No]], [Time], ">" & [Time] - Time(1, 0, 0), [Time], "<" & [Time] + Time(1, 0, 0), [Workcenter], [@Workcenter])
I'm guessing that this isn't how you use SUMIFS() so how do you modify this so that it can function as it does in excel.
Any help is appreciated!