What am I doing wrong with the syntax here:
My intention is to set the Qty variable to the sum of Column D where Column B contains the text "TRUE", Column E is the current SKU being examined and Column I is the current DUP (discounted unit price). My guess was that True was causing a problem, so I tried ""TRUE"", but that didn't help.
VBA Code:
Qty = Application.worksheetfunction.SumIfs(OpenReport.ActiveSheet.range("D2", "D" & LastRow), _
OpenReport.Activesheet.range("B2", "B" & LastRow), "True" _
OpenReport.Activesheet.range("E2", "E" & LastRow), SKU _
OpenReport.Activesheet.range("I2", "I" & LastRow), DUP)
My intention is to set the Qty variable to the sum of Column D where Column B contains the text "TRUE", Column E is the current SKU being examined and Column I is the current DUP (discounted unit price). My guess was that True was causing a problem, so I tried ""TRUE"", but that didn't help.