In Excel VBA, I know I can use an array formula on multiple cells, by selecting a range of cells of Col C, and doing =A1:10*B1:B10 Ctrl-shift-enter.
But suppose instead of the multiplication operator, I want it to be my mymult.
How would I write the mymult function?
Function MyMult(a As Integer, b As Integer)
MyMult = a * b
End Function
What I have isn't working

(1*2)*(1*3)*(1*4)=24?=a1*b1in C1 and then double-click the fill handle.aandbdeclared asIntegerwhen you are expecting to use them asRange?=SUMPRODUCT(A1:10,B1:B10)