How to use Sumproduct in VBA???
Hi
Make sure you separate your concatenation operator (&) from the
variable names - the following works for me:
Public Function FHWA(One, Two)
FHWA = Application.Caller.Parent.Evaluate( _
"SUMPRODUCT(" & One.Address & "," & Two.Address & ")")
End Function
Hope this helps!
Richard
On 31 Dec, 09:36, FARAZ QURESHI
wrote:
Hi friends,
I wanna know what's the problem with:
Public Function FHWA(One, Two)
FHWA=Application.Caller.Parent.Evaluate( _
* * "SUMPRODUCT("&One.Address&","&Two.Address&")")
End Function
The code gives a:
Compile Error
Expected: list separator or )
What would be the appropriate way to write a simple code for sumproduct of
two arrays named One & Two?
Thanx
|