CrazyManiac
MIS
I need to sum all positive values in column A on Sheet1.Typing
=Sumif(A1:A100;">0") in Formula Bar gives an expected result.
But the code
Sub tst()
ThisWorkbook.Worksheets("Sheet1").Cells(1, 101).Value = "=SUMIF(A1:A100;"">0"")"
End Sub
returns an
"Application-defined or object-defined error"
Something wrong with my code?
=Sumif(A1:A100;">0") in Formula Bar gives an expected result.
But the code
Sub tst()
ThisWorkbook.Worksheets("Sheet1").Cells(1, 101).Value = "=SUMIF(A1:A100;"">0"")"
End Sub
returns an
"Application-defined or object-defined error"
Something wrong with my code?