I have a range of cells (just a simple column) which id like to use the sum function on in vba. The cells are on a separate worksheet from the one I used originally when I created the macro. Its returning a runtime error 1004. Im new to vba so im probably formatting something wrong. Any help would be appreciated!
Worksheets("Sheet2").Cells(16, 3) = WorksheetFunction.Sum(Worksheets("Sheet2").Range(Cells(4, 3), Cells(12, 3)))