Hi there, I'm fairly new to Excel VBA. I'm trying to calculate sumifs across sheets. The following code results in an application defined error:
Sub fpsavings2()
Range("C4").Select
ActiveCell.Value=Application.SumIf(Sheets("output").Range(Cells(4, 15),Cells(33, 15)), "", Sheets("Optimisationplan").Range(Cells(1, 1), Cells(33, 1)))
End Sub
Any help much appreciated, thanks!
Sub fpsavings2()
Range("C4").Select
ActiveCell.Value=Application.SumIf(Sheets("output").Range(Cells(4, 15),Cells(33, 15)), "", Sheets("Optimisationplan").Range(Cells(1, 1), Cells(33, 1)))
End Sub
Any help much appreciated, thanks!