Excel - SUMPRODUCT anomoly

Asked By Living the Dream on 03-Aug-12 08:01 AM
Hi Guy's

Not sure if anyone else has come across this.

When using vba to set certain values within an array of values to which
I am using SumProduct to draw specific data from, if fails to calculate.

If I enter the values manually, it works fine; any thoughts as to why
there is an issue between vba value pasting and manual entering...

TIA
Mick.


joeu2004 replied to Living the Dream on 03-Aug-12 12:44 PM
My thoughts are:  we need to see a concrete example.

WorksheetFunction.SumProduct works just fine in VBA, if you use it
correctly.

The last condition is the key.  You probably misunderstand how to use
WorksheetFunction.SumProduct.
joeu2004 replied to joeu2004 on 03-Aug-12 02:21 PM
Or you are setting the "values within an array of values" incorrectly.  Your
description is ambiguous.

In any case, the point is:  show us exactly what you are doing, and we can
tell you exactly what you are doing wrong.