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
? – BruceWayne=a1*b1
in C1 and then double-click the fill handle. – user4039065a
andb
declared asInteger
when you are expecting to use them asRange
? – BruceWayne=SUMPRODUCT(A1:10,B1:B10)
– Scott Craner