JuniorWoodchuck24
Registered User.
- Local time
- Yesterday, 19:36
- Joined
- Jan 13, 2010
- Messages
- 59
Trying to do the SumProduct in a Report. My question is how do you type it in VBA to work. I've got the following fields coming in XLift and Weight.
If I check the box to allow Excel worksheet functions I've come to this:
OverallWeight = Sum(Weight) 'Note I've got the total here already
txtFinalXposition = WorksheetFunction.SumProduct(arg1, arg2) / OverallWeight
I'm curious on how to enter the two fields [XLift] and [Weight] into arg1 and arg2.
Thanks
If I check the box to allow Excel worksheet functions I've come to this:
OverallWeight = Sum(Weight) 'Note I've got the total here already
txtFinalXposition = WorksheetFunction.SumProduct(arg1, arg2) / OverallWeight
I'm curious on how to enter the two fields [XLift] and [Weight] into arg1 and arg2.
Thanks