hi there
i have a little problem with sumif application/
when i run the macro below i get an eror that worksheetfunction does not work with sumif. i checked in vba help called worksheetfunction members and sum if was there. i dont understnd why its not working. please help
Sub sumif1()
Dim sumif1 As Integer
Set privaterange = Worksheets("âéìéåï1").Range("a1:b10")
sumif1 = Application.WorksheetFunction.sumif(privaterange, "x", "b1:b10")
MsgBox (sumif1)
End Sub
i have a little problem with sumif application/
when i run the macro below i get an eror that worksheetfunction does not work with sumif. i checked in vba help called worksheetfunction members and sum if was there. i dont understnd why its not working. please help
Sub sumif1()
Dim sumif1 As Integer
Set privaterange = Worksheets("âéìéåï1").Range("a1:b10")
sumif1 = Application.WorksheetFunction.sumif(privaterange, "x", "b1:b10")
MsgBox (sumif1)
End Sub